index页面js 如下:
<script type="text/javascript" charset="utf-8">
mui.init({
subpages: [{
url: 'home.html',
id: 'home.html',
styles: {
top: '0px', //mui标题栏默认高度为45px;
bottom: '51px' //默认为0px,可不定义;
}
}]
});
</script>
启动程序时,报错:
open '/dev/hwlog_switch' fail -1, 13. Permission denied
log switch off, only log_main and log_events will have logs!
Uncaught TypeError: Cannot call method 'addEventListener' of undefined at js/mui.min.js:7
index和home都没有用到addEventListener,为何会报这个错误?
赤鹰 (作者)
Uncaught TypeError: Cannot call method 'addEventListener' of undefined at js/mui.js:3804
2017-06-01 14:47
DCloud_UNI_CHB
回复 赤鹰:那行代码是什么啊?截个图看看
2017-06-01 16:02