这种错误我也经常看到,但是原因找了几次都没有找到
![1***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/bddac1723cc96b1450273cefe237e6f6.png)
- 发布:2016-06-15 10:20
- 更新:2016-06-15 10:40
- 阅读:1139
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20160615/85d76a64c8d462c7e9a4799a94f60bf5.png)
![BoredApe](http://img-cdn-tc.dcloud.net.cn/uploads/avatar/000/00/22/35_avatar_mid.jpg?v=1679533306)
BoredApe - 有问题就会有答案。
请参考http://ask.dcloud.net.cn/article/122文章中常见错误章节
此类型新手入门文章可以参考http://dev.dcloud.net.cn/mui/getting-started/
Uncaught ReferenceError: plus is not defined
在app开发中,若要使用HTML5+扩展api,必须等plusready事件发生后才能正常使用,否则可能会报“plus is not defined”的错误;
mui为简化开发,将plusReady事件封装成了mui.plusReady()方法,凡涉及到HTML5+的api,建议都写在mui.plusReady方法中;