要在javascript中使用El表达式,需要在el表达式两端加上单引号或者双引号

 

<script type="text/javascript">
jQuery(document).ready(function($) {
    var result = '${comresult }';  //使用el,记得加引号
    alert(result);
});
</script>

 

相关文章: