JS中输出EL表达式

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

 

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

 

posted @ 2018-06-17 21:03  Dandwj  阅读(822)  评论(0编辑  收藏  举报