我需要格式化输出,返回带thymeleaf标签的内容,但是该内容是原封不动地显示在页面上,没得到解析。
function formatter(value) {
return '<a th:href="' + value + '">' + value + '</a>';
}
页面显示的是
<a th:href="xxx">xxx</a>
可见,没有解析。为什么?怎么做才能解析呢?
我需要格式化输出,返回带thymeleaf标签的内容,但是该内容是原封不动地显示在页面上,没得到解析。
function formatter(value) {
return '<a th:href="' + value + '">' + value + '</a>';
}
页面显示的是
<a th:href="xxx">xxx</a>
可见,没有解析。为什么?怎么做才能解析呢?