You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
报错种类以及原因分析:
1.在webpack打包的时候,
可以在js文件中混用require和export。但是不能混用import 以及module.exports。否则报错(如下:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#')
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
自定义js改装成对象; (引入css不需要改装)
ES6写法:
ES5写法
报错种类以及原因分析:
1.在webpack打包的时候,
可以在js文件中混用require和export。但是不能混用import 以及module.exports。否则报错(如下:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#')
The text was updated successfully, but these errors were encountered: