开发者

Why Visual Studio intellisense doesn't show XMLHttpRequest objects methods?

I am trying access XMLHttpRequest() object's open and send methods but i can't see them in开发者_开发百科 intellisense of Visual Studio but why ?

var httprequest = new XMLHttpRequest();
httprequest.

can't see methods by intellisense after dot.


If your Javascript code does not 'compile' i.e. incomplete braces or syntax errors then the intellisense will not 'understand' your object. Try creating a new js file and only include the lines you quoted and you should get the 7 standard object options in intellisense.

You will not get open and send methods shown, just the 'constructor', 'hasOwnProperty', 'toString' etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜