Tag Archives: layui

[Solved] layui table org.thymeleaf.exceptions.TemplateInputException: An error happened during template…

The error message is as follows

Reason:
because the expression between [[…]] is considered an inline expression in thymeleaf, rendering error occurs

Solution 1:
change [[]] after cols to [[]]

Solution 2:
in <script type=“text/javascript” > Add th: inline = “None”

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

Error reported using layui $is not defined

The following error occurs when calling a function using the layui template

reason: Layu needs to be pre loaded and defined$

<script type="text/javascript" rel="script">
    layui.use(['table', 'layer', 'form','element'], function(){
        var table = layui.table;
        var layer = layui.layer;
        var form = layui.form;
        var element = layui.element;
        var $ = layui.$;

</script>

Error reporting under layui dynamic select IE

Layui will report an error when dynamically splicing the option under IE8. Line 447 of the form module does not support this method. The reason for the error is that it is necessary to provide a default option under select, as shown below, and then there will be no error in the dynamic splicing option. This problem does not exist on modern browsers.

<select>
	<option></option>
</select>