想使用luckySheet进行表格操作。再index.html中引用了无效,后再App.vue的OnLauch方法中使用document.head.appendChild(script);的方法添加,开发过程中H5正常使用,但是真机调试时不能识别document,如何才能再真机上正常使用luckySheet的库,或者真机上有没有类似document.head.appendChild的替代方法呢?

u***@yeah.net
- 发布:2023-07-05 20:10
- 更新:2023-08-19 17:06
- 阅读:431
5 个回复
爱豆豆 - 办法总比困难多
表格页面单独写个h5 app内通过webview打开 这样就不用去想怎么兼容app了
爱豆豆 - 办法总比困难多
或者你把这个插件的js下载到本地项目中 试试
DCloud_heavensoft
仔细看文档,document只有web才有。https://uniapp.dcloud.net.cn/matter.html
昭昭L - 开心就好
用webview
yantaicy
楼主你好,能分享一下你的luckysheet的demo吗?可以有偿
hhyang
我这边可以帮你解决,联系我的QQ:1606726660
2023-08-19 21:37