项目中--常见错误

1、Uncaught TypeError: Cannot set properties of null (setting ‘onblur‘)

或者  index.html:23 Uncaught TypeError: Cannot set properties of null (setting 'onclick')

==>  这种可能是onblur前面的类名与你定义的类名不一致,仔细检查一下 

2、await is only valid in async functions and the top level bodies of modules

==>await只在异步函数和顶级模块体中有效,设置async

3、uniapp中使用微信工具开发运行的时候,报错:

 ==> 删除 unpackage/dist/dev所有内容

猜你喜欢

转载自blog.csdn.net/qq_52301431/article/details/126276287