Thymeleaf 页面输出
<title>[[${msg}]]</title> [[${map.name}]] //[[]]写法会html转义 [(${map.name})] //[()]写法不会html转义
转义:menuItems: '[
{"fjd":"N01","cddm":"N01","children":[
{"fjd":"N01","cddm":"N0101","children":[]},
{"fjd":"N01","cddm":"N0102","children":[]}
]},
{"fjd":"N02","cddm":"N02","children":[]}]',
未转:menuItems: '[
{"fjd":"N01","cddm":"N01","children":[
{"fjd":"N01","cddm":"N0101","children":[]},
{"fjd":"N01","cddm":"N0102","children":[]}
]},
{"fjd":"N02","cddm":"N02","children":[]}]'