thymeleaf中th:text和th:utext的區別

th:text 1.能夠對錶達式或變量進行求值 2.用「+」符號可進行文本鏈接 3.當獲取後端傳來的參數時,若後端有標籤,如:html @RequestMapping("/") public String aa(Model model) { String msg = "<h1>啦啦啦</h1>"; model.addAttribute("msg", msg); return
相關文章
相關標籤/搜索