自定义组件参与条件(wx:if, wx:elif, wx:else)渲染报错
发布于 6 年前 作者 yanjin 17131 次浏览 来自 问答

自定义组件参与条件渲染(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)
3 回复

不要在条件语句中引入,可以用hidden处理是否显示,亲测可以

微信文档挺坑的,刚碰到这个问题,wx:elif 换成 wx:elseif  能编译过去,数据显示完全没问题

都没人员回答的么

回到顶部