我正在使用 VS Code,我希望 Intellisense 能够识别 javascript 原型函数。有没有办法配置它来这样做?
function MyObject() {}
MyObject.prototype.foo = function() {};
MyObject.prototype.bar = function() {};
var myObj = new MyObject();
myObj. //I want Intellisense to show me the foo and bar functions here
Run Code Online (Sandbox Code Playgroud)