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">
Read More:
- The solution to the failure of HTML introducing external JS
- [Solved] Vite Error: Failed to load module script: Expected a JavaScript module script but the server…
- JS async await Error: Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules
- JavaScript Common Errors List (Reasons & Solutions)
- JS bug Log Uncaught TypeError: Cannot read property ‘previoustSibling‘ of null
- Asynchronous loading method of Baidu map
- Method to solve uncaught typeerror: cannot set property ‘onclick’ of null error
- Google browser plug-in JavaScript errors Notifier
- vue Error: Uncaught SyntaxError: Invalid shorthand property initializer
- [Solved] Vue Error: Duplicate keys detected: ‘74004’. This may cause an update error
- React error boundary (What You Should Know & How to Solve)
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- [Solved] Uncaught SyntaxError: Cannot use import statement outside a module
- [Solved] VUE D:\project\vueProject\vue-02\src\components\hello.vue 5:5 error Parsing error: x-invalid-end-tag
- Solve Google browser font reduction to 12px
- Vue modifies the value passed by props error: Avoid mutating a prop directly since the value will be overwritten whenever the par
- [Solved] VS Code Debug JavaScript Error: “crbug/1173575, non-JS module files deprecated”
- CSS to achieve dynamic display of picture text by mouse touch
- [Solved] Project Package Error: Javascript heap out of memory
- [Solved] Binding onclick event in JS: for loop: error uncaught typeerror: cannot set properties of undefined (setting ‘classname’)