springboot thymeleaf 对自定义标签赋值

在开发中遇到须要对自定义属性进行赋值,以前项目的写法为:<a href="javascript:void(0);"  th:data-uri="${s.resUrl}"></a>,结果在新项目中js 经过data_uri = $(this).attr('data-uri')获取到的值为undefined,网上看了几篇博文(比较详细的一篇博客https://blog.csdn.net/nihaoqi
相关文章
相关标签/搜索