你还可以在"data-*" 属性里使用json语法,例如
<div id="awesome-json" data-awesome='{"game":"on",”name”:”bb”}'></div>
<a data-awesome='{"id":"${puser.personId }","name":"${puser.nickName }","personState":"${puser.personState }",}' class="change change_right frozen">冻结</a>
$(".frozen").click(function(){
var puserId = $(this).data("awesome").id; //用户ID
var puserName = $(this).data("awesome").name; //用户姓名
var puserState = $(this).data("awesome").personState; //用户状态
<a data-personId="${psuper.personId }" data-superId=${psuper.supervisorId } class="relieveOne" >解冻</a>
$(".freeze").click(function(){
var personIds=$(this).attr("data-personId");
var superIds=$(this).attr("data-superId");