收藏
回答

webviewScriptError 渲染层出错

问题模块
API和组件


渲染层错误

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>


最后一次编辑于  2017-08-11
回答关注问题邀请回答
收藏

3 个回答

  • 赵青山
    赵青山
    2017-08-13

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

    2017-08-13
    赞同
    回复
  • 烛九阴
    烛九阴
    2017-08-13

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

    2017-08-13
    赞同
    回复
  • 赵青山
    赵青山
    2017-08-12

    ul li 是什么?

    2017-08-12
    赞同
    回复