加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

页面数据处理(一)

发布时间:2020-12-14 04:17:55 所属栏目:大数据 来源:网络整理
导读: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 cl
 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");

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读