自定义组件参与条件渲染(wx:if, wx:elif, wx:else)报错,
Wed May 23 2018 16:13:56 GMT+0800 (中国标准时间) 渲染层错误 VM37200:2 Error: Expect FLOW_CREATE_NODE but get another at e.value (:34091/__pageframe__/__dev__/WAWebview.js:20) at :34091/__pageframe__/__dev__/WAWebview.js:20 at Array.forEach (<anonymous>) at e.value (:34091/__pageframe__/__dev__/WAWebview.js:20) at :34091/__pageframe__/__dev__/WAWebview.js:20 at Array.forEach (<anonymous>) at e.value (:34091/__pageframe__/__dev__/WAWebview.js:20) at :34091/__pageframe__/__dev__/WAWebview.js:20 at Array.forEach (<anonymous>) at e.value (:34091/__pageframe__/__dev__/WAWebview.js:20) (anonymous) @ VM37200:2 VM37201:1 Wed May 23 2018 16:13:56 GMT+0800 (中国标准时间) 渲染层错误 VM37201:2 exparserScriptError Expect FLOW_CREATE_NODE but get another Error: Expect FLOW_CREATE_NODE but get another at e.value (http: //127.0.0.1:34091/__pageframe__/__dev__/WAWebview.js:20:2694) at http: //127.0.0.1:34091/__pageframe__/__dev__/WAWebview.js:20:3031 at Array.forEach (<anonymous>) at e.value (http: //127.0.0.1:34091/__pageframe__/__dev__/WAWebview.js:20:3003) at http: //127.0.0.1:34091/__pageframe__/__dev__/WAWebview.js:20:3031 at Array.forEach (<anonymous>) at e.value (http: //127.0.0.1:34091/__pageframe__/__dev__/WAWebview.js:20:3003) at http: //127.0.0.1:34091/__pageframe__/__dev__/WAWebview.js:20:3031 at Array.forEach (<anonymous>) at e.value (http: //127.0.0.1:34091/__pageframe__/__dev__/WAWebview.js:20:3003) |
微信文档挺坑的,刚碰到这个问题,wx:elif 换成 wx:elseif 能编译过去,数据显示完全没问题
wx:elseif会报错的吧
不会报错
你改下我上面的代码片段试试看,我这边是报错的。或者你发个代码片段我这边看看吧,感谢
不要在条件语句中引入,可以用hidden处理是否显示,亲测可以
都没人员回答的么
我是在for循环中if的,但是并没有什么用,最后使用了三个if解决了