I see every time error in my visual studio even code working fine for me in every browser.
the problem is that i not want to watch the error window every time
"Microsoft JScript runtime er开发者_如何学Goror: Object doesn't support this property or method
"
how i can stop visual studio to showing errors relate to my javascript code.
From your comment:
my function try to call three or four function some of them not implemented in all browser. this is not error but they give me error. well how i can stop this if i want to
Usually you test first whether the function is implemented - for example, if you'd like to use getElementsByClassName
:
if (document.getElementsByClassName){
var nodes = document.getElementsByClassName('myclass');
...
}
The condition in the first line returns only true if the function actually exists.
EDIT:
As to Visual Studio 2010, it seems that activating debugging for silverlight turns off debugging for javascript, see http://vishaljoshi.blogspot.com/2009/06/disabling-script-debugging-with-vs-2010.html
I usually use Firefox instead of IE and therefore never had that particular problem.
精彩评论