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.
精彩评论