提问者:小点点

在浏览器中使用ES6模块[副本]


我正在尝试使用ES6模块在浏览器中导出和导入对象。

我试过了

import { options } from 'options';

但是我得到了错误uncatted syntaxerror:Unexpected token import

然后我尝试转换它,但现在我收到错误uncapted referenceerror:required is not defined

在浏览器中不能使用模块吗?


共1个答案

匿名用户

您可能需要查看http://jspm.io/它基于system.js。

希望有帮助..