wxParse icon indicating copy to clipboard operation
wxParse copied to clipboard

报错!求解 Cannot read property 'nodes' of undefined

Open 65man opened this issue 7 years ago • 2 comments

wxParse.js? [sm]:134 Uncaught (in promise) TypeError: Cannot read property 'nodes' of undefined at Object.wxParseTemArray (http://127.0.0.1:57470/appservice/plugins/wxParse/wxParse.js:179:42) at Home._callee6$ (http://127.0.0.1:57470/appservice/pages/home/home.js:375:39) at tryCatch (http://127.0.0.1:57470/appservice/npm/regenerator-runtime/runtime.js:65:40) at Generator.invoke [as _invoke] (http://127.0.0.1:57470/appservice/npm/regenerator-runtime/runtime.js:303:22) at Generator.prototype.(anonymous function) [as next] (http://127.0.0.1:57470/appservice/npm/regenerator-runtime/runtime.js:117:21) at step (http://127.0.0.1:57470/appservice/pages/home/home.js:41:191) at http://127.0.0.1:57470/appservice/pages/home/home.js:41:361 at

let list = res.data.data let newinfo = [] var that = this for (let i = 0; i < list.length; i++) { newinfo.push(list[i]['promotion_description']) } console.log(newinfo) for (let i = 0; i < newinfo.length; i++) { WxParse.wxParse('info' + i, 'html', newinfo[i], that) if (i === newinfo.length - 1) { WxParse.wxParseTemArray('acitivityArr', 'info', newinfo.length, that) } }

65man avatar Sep 26 '18 09:09 65man

image

65man avatar Sep 26 '18 09:09 65man

image 添加这一行代码:that.data[bindName] = transData;

zhang463291046 avatar Oct 25 '18 02:10 zhang463291046