Skip to content

Commit 122321f

Browse files
committed
修改代码错误
1 parent 4b952bf commit 122321f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter5.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ JavaScript不像Java或者其它语言,它没有专门的提供私有、保护
685685

686686
// 给this对象添加模块
687687
// 未指明模块或者*都表示“使用所有模块”
688-
if (!modules || modules === '*') {
688+
if (!modules || modules[0] === '*') {
689689
modules = [];
690690
for (i in Sandbox.modules) {
691691
if (Sandbox.modules.hasOwnProperty(i)) {

0 commit comments

Comments
 (0)