我正在尝试 Visual Studio Code 1.0,但名为“Salsa”的新 Intellisense 不适用于我。我有一个休闲项目:
App
├── index.html
├── jsconfig.json
├── main.js
├── lib
│ └── require.js
└── js
└── pet.js
js配置:
{
"compilerOptions": {
"target": "es6"
}
}
宠物.js:
define(function () {
var Pet = function(name) {
this.name = name;
this.getNameUpperCase = function(){
return this.name.toUpperCase();
}
}
return Pet;
});
main.js(不建议我使用 getNameUpperCase 方法)
请问,我做错了什么?
[编辑] pet.js 的导入错误。