JQuery 自定义属性取值 赋值
<span id="status_68" data-id="0" onclick="collection(68,false);" class="tl-size12 tl-padding6">收藏</span>
//取值
let dataId = $('#status_'+id).attr("data-id");
let dataId = $('#status_68').attr("data-id");
//赋值
$('#status_'+id).attr("data-id","0");//默认值为1 需要改为0
$('#status_'+id).attr("data-id","1"); //默认值为0 需要改为1