&符号在thymleaf中需要写成&;才会被识别
'<'号 在js中需要加/<![CDATA[*/ /*]]>/ 才会被识别
<script th:inline="javascript">
/*<![CDATA[*/
$(document).ready(function () {
/*动态修改分享连接*/
var shareToWeiboUrl = "http://service.weibo.com/share/share.php?url="+encodeURIComponent(document.location.href)+"&title="+encodeURIComponent(document.title)+"&pic="+encodeURIComponent([[${cmsTopContentInfo['thumb']}]]);
$("#shareToWeibo").attr("href", shareToWeiboUrl);
var shareToQZoneUrl = "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + encodeURIComponent(document.location.href) + "&title="+encodeURIComponent(document.title)+"&pics="+encodeURIComponent([[${cmsTopContentInfo['thumb']}]])+"&summary="+encodeURIComponent([[${cmsTopContentInfo['description']}]])+"&desc="+encodeURIComponent([[${cmsTopContentInfo['title']}]]);
$("#shareToQZone").attr("href", shareToQZoneUrl);
/*动态修改分享连接*/
})
/*]]>*/
</script>
onclick 传参记录下
th:"'updateData('+${scheme.id}+')'">修改</a><br/>
th:"'deleteData(\''+${scheme.model}+'\')'">删除</a>
第一个传id值
第二个传字符串