Layui + thymeleaf org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: " 错误解决

解决方法:

1.将layui的代码移动到新的js文件当中,用template模板引擎的方式引入:

<script th:src="@{/static/js/facility/movering_setting.js}"></script>

2.在行内script当中加入 th:inline='none'(不推荐)

<script type="text/javascript" th:inline="javascript">

layui.use('table',function () {

......

})


</script>

 

posted @ 2019-07-22 16:34  程序猿小码  阅读(8022)  评论(0编辑  收藏  举报