标签:var message col rect lse general 数据 app alert
1 success: function (jsonData) { 2 var status = jsonData.status; 3 var entityList = jsonData.entityList; 4 if (status == 1) { 5 var questionGeneraStr = ‘‘; 6 $.each(entityList, function (index, element) { 7 questionGeneraStr += ‘<div class="quesList clearfix c_question" data-questiongeneralid="‘ + element.questionGeneralId + ‘">‘ + 8 ‘<p class="title">‘ + element.questionName + 9 ‘<div class="list_left">‘ + 10 ‘<h3>‘ + element.questionTotalNum + ‘</h3>‘ + 11 ‘</div>‘ + 12 ‘<div class="list_right">‘ + 13 ‘ 上传时间:‘ + element.addTime + 14 ‘</div>‘ + 15 ‘</div>‘; 16 }); 17 18 $("#j_listBox").append(questionGeneraStr); 19 } else if (status == 2) { 20 mui.toast(jsonData.message); 21 } else if (status == 3) { 22 mui.alert(jsonData.message, function () { 23 mui.openWindow(jsonData.redirectUrl); 24 }); 25 } else { 26 mui.alert(jsonData.message); 27 } 28 }
取值: var id = $(this).attr("data-questiongeneralid");
标签:var message col rect lse general 数据 app alert
原文地址:https://www.cnblogs.com/chenze-Index/p/9835903.html