執(zhí)行node index報(bào)錯(cuò)
E:\nodejs--test\school\klass.js:13
});
?^
SyntaxError: Unexpected token )
? ? at new Script (vm.js:79:7)
? ? at createScript (vm.js:251:10)
? ? at Object.runInThisContext (vm.js:303:10)
? ? at Module._compile (internal/modules/cjs/loader.js:656:28)
? ? at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
? ? at Module.load (internal/modules/cjs/loader.js:598:32)
? ? at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
? ? at Function.Module._load (internal/modules/cjs/loader.js:529:3)
? ? at Module.require (internal/modules/cjs/loader.js:636:17)
? ? at require (internal/modules/cjs/helpers.js:20:18)
2019-01-25
剛剛發(fā)現(xiàn)問(wèn)題了,少了個(gè) } 大括號(hào)的右側(cè)