- <p class="p1"><span class="s1"><b>this</b></span>.comp(<span class="s2">'stateBtn'</span>).set({</p>
- <p class="p1"><span class="Apple-converted-space"> <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>label:<span class="s2">"启用"</span></p>
- <p class="p1"><span class="Apple-converted-space"> </span>});</p><p class="p1"></p>
复制代码
TypeError: Cannot read property 'set' of null at Model [as constructor] (http://localhost:8888/x5/UI2/v_ae1fb42a13584331ba545d9ecda6e9c6l_zh_CNs_desktopd_pc/hello/mainActivity.js:9:30) at n.callParent (http://localhost:8888/x5/UI2/v_66987e8b7e1a41f7ab4746f3cdb0bc48l_zh_CNs_desktopd_pc/system/core.min.js:71:234912) at new __parent1._extend.extend.constructor (http://localhost:8888/x5/UI2/v_ae1fb42a13584331ba545d9ecda6e9c6l_zh_CNs_desktopd_pc/hello/mainActivity.w?$pageType=model&$noCompile=true:19:7) at n (http://localhost:8888/x5/UI2/v_66987e8b7e1a41f7ab4746f3cdb0bc48l_zh_CNs_desktopd_pc/system/core.min.js:71:235019) at Object.p.resolveObject (http://localhost:8888/x5/UI2/v_66987e8b7e1a41f7ab4746f3cdb0bc48l_zh_CNs_desktopd_pc/system/core.min.js:71:282426) at Object.<anonymous> (http://localhost:8888/x5/UI2/v_66987e8b7e1a41f7ab4746f3cdb0bc48l_zh_CNs_desktopd_pc/system/core.min.js:71:285573) at Object.<anonymous> (http://localhost:8888/x5/UI2/v_66987e8b7e1a41f7ab4746f3cdb0bc48l_zh_CNs_desktopd_pc/system/core.min.js:71:43451) at f (http://localhost:8888/x5/UI2/v_66987e8b7e1a41f7ab4746f3cdb0bc48l_zh_CNs_desktopd_pc/system/core.min.js:71:42070) at Object.l.fireWith [as resolveWith] (http://localhost:8888/x5/UI2/v_66987e8b7e1a41f7ab4746f3cdb0bc48l_zh_CNs_desktopd_pc/system/core.min.js:71:42895) at Object.i.(anonymous function) [as resolve] (http://localhost:8888/x5/UI2/v_66987e8b7e1a41f7ab4746f3cdb0bc48l_zh_CNs_desktopd_pc/system/core.min.js:71:43875) core.min.js:71 Uncaught TypeError: Cannot read property 'set' of null 语法写错了?
|