账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    循环一个json model 使用indexOf查找其中的字符?
    13
    0
    [{
    "url": "http://img06.tooopen.com/images/20160921/tooopen_sy_179583447187.jpg",
    "media": [5, 3, 4, 0, 1],
    "notesCount": 100,
    "unProcessedCount": 100,
    "area": {
      "customerName": "张大民",
      "appellation": "先生",
      "tel": 15833150000
    },
    "modifytime": "12:12 2018-3-28"
      }, {
    "url": "http://img.1ppt.com/uploads/allimg/1605/4_160504095943_1.jpg",
    "notesCount": 100,
    "unProcessedCount": 100,
    "area": {
      "estate": "德源里",
      "tel": 15833150000
    },
    "modifytime": "12:12 2018-3-28"
      }]
      
    
          比如这样一个model
           for (var i = 0; i < arr.length; i++) {
           if (arr[i].indexOf("张大民") !== -1) {
                   查询出带有这个字符的对象怎么不行
                }
            }    
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 执白先行 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部