javascript - Document will not load sources. Sublime Text -
i not understand this. i'm on pc right now, using sublime text , google chrome , document not load jquery, stays pending awhile fails. works on mac, using kind of editor, seems whenever use sublime on pc happens...
edit: adding http:// script src allow jquery load, throws 304.
<!doctype html> <html> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> $(document).ready(function(){ $("button").click(function(){ $("p").hide(); }); }); </script> </head> <body> <h2>blah</h2> <button>blah</button> </body> </html> i'll jquery failed 22.07s
when //ajax... dynamically attaches file:// protocol. since doing local file system need more specific http://
i have modified code correct mistakes missing of script tag. added p tag can see example working etc. take look.
<!doctype html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("p").hide(); }); }); </script> </head> <body> <h2>blah</h2> <button>blah</button> <p> go away </p> </body> </html>
Comments
Post a Comment