How can i use for loop in javascript using thymeleaf?

后端 未结 3 1346
无人共我
无人共我 2021-01-13 16:09

I am using thymeleaf so when I run this application ,it gives me an error in (for(int i=0;i<10;i++) It means I have to respect the syntaxe of thymeleaf.My question is how

3条回答
  •  不思量自难忘°
    2021-01-13 17:02

    In thymeleaf current scripting modes are javascript (th:inline="javascript") and dart (th:inline="dart").

    Use following snippet instead of

提交回复
热议问题