- 请问一下控制台报这种错误该,怎么看在哪里的代码错误?
[图片]
2020-09-06 - 这样的数组,如何用wx:for列表渲染?
{ "_id": "3adec2825f34ad*****dcf003ae28bd7", "name": "刘先生", "phone": { "$numberLong": "12111111111" }, "newData": [ [ { "name": "刘先生" }, { "address": "6-2304" }, { "pdname": "628" } ], [ { "name": "刘先生" }, { "address": "6-2304" }, { "pdname": "509" } ], [ { "name": "刘先生" }, { "address": "6-2304" }, { "pdname": "628" } ] ] }, { "_id": "3adec2825f34ad7******003ae28bd7", "name": "张先生", "phone": { "$numberLong": "12111111111" }, "newData": [ [ { "name": "张先生" }, { "address": "5-2304" }, { "pdname": "528" } ], [ { "name": "张先生" }, { "address": "5-2304" }, { "pdname": "509" } ], [ { "name": "张先生" }, { "address": "5-2304" }, { "pdname": "528" } ] ] } 如何渲染newData数组字段下的数据到页面?效果如下 [图片] [图片]
2020-08-13 - 这样的字符串如何匹配?
let str = "微信开放社区" 例如:给出一个关键词:let data="微放",查找【str】字符串是否包含"微","放"这两个关键词,找到返回真,有什么好的方法?
2020-08-11 - 这样的数组如何遍历数据?
【原数组】 data: Array(5) 0: ["ID", "姓名", "电话", "地址", "邮箱", "工号"], 1: ["1", "小王", "11111", "北京", "11111@qq.com", "g1"], 2: ["2", "小李", "22222", "北京", "22222@qq.com", "g2"], 3: ["3", "小赵", "33333", "北京", "33333@qq.com", "g3"], 4: ["4", "小张", "44444", "北京", "44444@qq.com", "g4"] 【如何遍历成以下的新数组】 data: Array(5) 0: ["ID":1,"姓名":"小王", "电话":"11111", "地址":"北京", "邮箱":"11111@qq.com", "工号":"g1"], 1: ["ID":2,"姓名":"小李", "电话":"22222", "地址":"北京", "邮箱":"22222@qq.com", "工号":"g2"], 2: ["ID":3,"姓名":"小赵", "电话":"33333", "地址":"北京", "邮箱":"33333@qq.com", "工号":"g3"], 3: ["ID":4,"姓名":"小张", "电话":"44444", "地址":"北京", "邮箱":"44444@qq.com", "工号":"g4"],
2020-08-11 - 微信开发者工具云函数本地调试窗口,不显示请求参数窗口?
开发者工具版本号 [图片] [图片]
2020-08-08 - 使用云数据库 explain API,开发者工具调试窗口不打印信息?
db.collection('test').where({ _openid: '{openid}' }).get({ explain: true, complete: console.log }) [图片]
2020-08-06 - iview可以转成uni-app吗?
不是iView Weapp,可以请指教,感谢!
2020-07-27 - 使用vue框架,可以使用微信开发者工具原生的数据库和云函数吗?
感谢您的回答!
2020-07-24 - lookup联表查询,如何遍历数组,匹配对应的数据?
表1 "_id":"2a0398605f1114*****d69a167ebf9ed" "name":"A_TL" "alistArray":[100,101,200,201] 表二 "_id":"2a0398605f1114*****d69a167ebf9ed" "alistID":"301" "time":"20-10-10" ------------------------------------------------------ "_id":"2a0398605f1114*****d69a167ebf9ed" "alistID":"100" "time":"21-10-10" ------------------------------------------------------ "_id":"2a0398605f1114*****d69a167ebf9ed" "alistID":"200" "time":"20-12-10" ------------------------------------------------------ "_id":"2a0398605f1114*****d69a167ebf9ed" "alistID":"201" "time":"10-10-10" ------------------------------------------------------ "_id":"2a0398605f1114*****d69a167ebf9ed" "alistID":"501" "time":"25-10-10" 遍历【表1】里”alistArray“字段里的所有值,联表查询【表2】里的”alistID“相匹配的数据, 实现结果: "_id":"2a0398605f1114*****d69a167ebf9ed" "name":"A_TL" "alistArray":[100,101,200,201] "newlist":[ { "_id":"2a0398605f1114*****d69a167ebf9ed" "alistID":"100" "time":"21-10-10" }, { "_id":"2a0398605f1114*****d69a167ebf9ed" "alistID":"200" "time":"20-12-10" }, { "_id":"2a0398605f1114*****d69a167ebf9ed" "alistID":"201" "time":"10-10-10" } ]
2020-07-17 - wx.setStorage数据缓存,1000条json数据,存入Key中,大概占存储几MB?
wx.setStorage数据缓存,1000条json数据,存入Key中,大概占存储几MB?
2020-07-16