javascript - Error 1 Could not find symbol '$' -
javascript - Error 1 Could not find symbol '$' -
when utilize visual studio edit external javascript file , utilize javascript within page, unsurprisingly unaware of jquery, because web page owns hasn't loaded javascript file.
//test.js:
$(document).ready(function () { alert("if need code example"); });
as result, error:
error 1 not find symbol '$'
again, design time error, not runtime error.
is there way create visual studio editor little smarter or @ to the lowest degree suppress these errors?
update:
i think typescript editor in complained there error, no error shown when editing rresulting javascript file.
modified question:
how can create typescript file editor happy? think "editor" may web essentials add together in , there may directive create ignore $, perhaps. or thinking of jslint?
i''m new of this...
try:
jquery(document).ready(function(){ });
or maybe missing );
after }
javascript jquery visual-studio
Comments
Post a Comment