jQuery code doesn't work if I'm using a local jquery.js file, why?
问题 Let's say this my page for example .. <!doctype html> <html> <head> </head> <body> <script src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ }); </script> <div id="div1"></div> </body> </html> As you see I'm using a local jQuery file ( jquery.js ) so every time I write jQuery code it doesn't work knowing that both of my page and jquery.js in same level .. But when I'm using a jQuery file online, like this for example <script src="http://ajax.googleapis