$("#filter-policy-category").on("click","a",function () {
var a = $(this).attr("data-request-data");
$(this).toggleClass("active");
console.log(a);
var arr = /id\:(\d{0,})\,category\:\'(\D{0,})\'/.exec(a)
console.log(arr);
$.request('onFilterNewsByCategory',{
data:{id:arr[1],category:arr[2]},
success:function (data) {
console.log(data);
}
})
})如图,需要将获取到的标签储存起来。
添加回答
举报
0/150
提交
取消