用Cordova打包vue项目时,发现deviceready事件没有被触发。

解决方法:加入

<script src="cordova.js"></script>

程序正常运行。

cordova.js直接引入即可,是自动生成的。

相关文章:

  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-11-26
  • 2022-01-08
  • 2021-07-24
  • 2021-12-05
相关资源
相似解决方案