kao出现SyntaxError: Cannot use import statement outside a module的问题

  • 因为用了ES6的import导入模块,换成require即可
  • node下无法使用import,如果要使用的话要使用插件

猜你喜欢

转载自blog.csdn.net/weixin_43663349/article/details/121262861
今日推荐