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

 

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

 

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2022-01-06
  • 2021-07-24
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2021-11-13
  • 2022-01-09
  • 2021-09-26
相关资源
相似解决方案