I got the following string in thymeleaf and I get the error:
Could not parse as expression
th:onclick="'myFunction(\'$([[#new-' + ${e.var} +'_' +${l.var}]])+'\', true, false, true, false, true, myParameter);'"
Can't really see the concat mistake.
Edit: the $() is a jquery selector.
Thanks:)
You need add plus sign on every phrase
here is something wrong, because you are ending phrase with apostrophe but you haven't plus sign after that
myFunction(\\'$([[#new-'
apostrophe after \\
shouldn't be here, remove it
'\', true, false, true, false, true, myParameter);'"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.