JS中输出EL表达式

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

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

猜你喜欢

转载自www.cnblogs.com/Dandwj/p/9193692.html