页面数据处理(一)

 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");

转载于:https://www.cnblogs.com/chenze-Index/p/9835903.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值