今日坑

266

1.fs模块不能在浏览器上使用,只能在nodejs运行的后台使用,浏览器使用会报错readFileSync is not a function

事实证明ionic是用不了fs模块的。

2.ES2015使用import xxx from xxx的导入方法,其他版本的导入方式不一样。

留下一个答复

Please enter your comment!
Please enter your name here