webviewScriptError 渲染层出错
发布于 6 年前 作者 songyan 19431 次浏览 来自 问答

渲染层错误

VM3139:2 webviewScriptError

Cannot read property ‘hasOwnProperty’ of undefined

TypeError: Cannot read property ‘hasOwnProperty’ of undefined

    at wfor (http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:460:25)

    at _2 (http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:615:1)

    at d_…/components/Selection/selection.wxml.selection (http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:778:1)

    at xQ (http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:861:1)

    at wfor (http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:533:1)

    at _2 (http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:615:1)

    at m2 (http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:869:1)

    at http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:895:1

    at Function.value (http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:30:22870)

    at p (http://1429015948.debug.open.weixin.qq.com/pages/quiz/quiz.html?id=ce-shi-jing-cai-1:31:9426)

<ul class='group-content'>
    <li class='content col2' bindtap='{{_onSelect}}' data-index='{{opt.group_key}}' data-hash='{{opt.hash}}' wx:for="{{opts}}" wx:for-item='opt' wx:key='*this'>
        <text class='option-desp'>{{opt.option_desp}}
              <text wx:if='opt.option_sub_desp != undefined'>{{opt.option_sub_desp}}</text>
        </text>
        <text class='tMultiple'>{{opt.amount}}</text>
    </li>
</ul>
3 回复

在wxml里变量都是要加{{}},包括逻辑判断

html标签,编译也是通得过的

ul li 是什么?

回到顶部