会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
xianshenglu
博客园
首页
新随笔
联系
订阅
管理
2018年2月10日
浏览器中使用 ES6 import
摘要: html 中的 head 标签引入:test.js :import { a } from "./test2.js";console.log(a);//0test2.js:'use strict'let a = 0;export { a };node 版本:8.9,从官网下载的 msi 重装的;在浏览器中运行正常,没有报错,但是:这样用是报错的,可以理解,上面的 0 没有报错,是在 type="mo...
阅读全文
posted @ 2018-02-10 11:23 xianshenglu
阅读(884)
评论(0)
推荐(0)
编辑
公告