File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 13
13
感谢张春雨编辑支持我将全书开源的做法。如果您认可这本书,建议购买纸版。这样可以使出版社不因出版开源书籍而亏钱,进而鼓励更多的作者开源自己的书籍。下面是第三版的购买地址。
14
14
15
15
- [ 淘宝] ( https://s.taobao.com/search?q=ES6%E6%A0%87%E5%87%86%E5%85%A5%E9%97%A8+%E7%AC%AC3%E7%89%88 )
16
- - [ 京东] ( https://item .jd.com/12172449.html )
16
+ - [ 京东] ( https://search .jd.com/Search?keyword=ES6%E6%A0%87%E5%87%86%E5%85%A5%E9%97%A8%20%E7%AC%AC3%E7%89%88&enc=utf-8&wq=ES6%E6%A0%87%E5%87%86%E5%85%A5%E9%97%A8%20%E7%AC%AC3%E7%89%88 )
17
17
- [ 当当] ( http://product.dangdang.com/25156888.html )
18
18
- [ 亚马逊] ( https://www.amazon.cn/ES6%E6%A0%87%E5%87%86%E5%85%A5%E9%97%A8-%E9%98%AE%E4%B8%80%E5%B3%B0/dp/B0755547ZZ )
19
19
- [ China-pub] ( http://product.china-pub.com/6504650 )
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ $ node --experimental-modules my-app.mjs
280
280
import ' ./foo?query=1' ; // 加载 ./foo 传入参数 ?query=1
281
281
```
282
282
283
- 上面代码中,脚本路径带有参数` ?query=1 ` ,Node 会按 URL 规则解读。同一个脚本只要参数不同,就会被加载多次,并且保存成不同的缓存。由于这个原因,只要文件名中含有` : ` 、` % ` 、` # ` 、` ? ` 等特殊字符,就必须转义,比如 ` foo#bar.js ` 不能写成 ` import './foo#bar' ` ,而要写成 ` import './foo\#bar' ` 。
283
+ 上面代码中,脚本路径带有参数` ?query=1 ` ,Node 会按 URL 规则解读。同一个脚本只要参数不同,就会被加载多次,并且保存成不同的缓存。由于这个原因,只要文件名中含有` : ` 、` % ` 、` # ` 、` ? ` 等特殊字符,最好对这些字符进行转义 。
284
284
285
285
目前,Node 的` import ` 命令只支持加载本地模块(` file: ` 协议),不支持加载远程模块。
286
286
You can’t perform that action at this time.
0 commit comments