我在项目里面使用了uview的第三方库,为啥提醒我这些错误。

s***@163.com
- 发布:2020-11-10 16:50
- 更新:2020-11-10 17:40
- 阅读:5912
uview中使用Cannot read property '$u' of undefined
分类:uni-app
1 个回复
chenli
1、引入注册了吗?https://uviewui.com/components/npmSetting.html#_1-%E5%BC%95%E5%85%A5uview%E4%B8%BBjs%E5%BA%93
2、只有vue页面才有this.$u这个方法