thyemleaf相关语法

来源:互联网 发布:wps数据不能求和 编辑:程序博客网 时间:2024/06/05 02:30

js获取项目名

html中:

<meta name="ctx" th:content="${#httpServletRequest.getContextPath()}" />

js文件中:

function ctx(){
    return $("meta[name='ctx']").attr("content");
}


原创粉丝点击