简体   繁体   中英

Javascript not working on Dreamweaver

My code has

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

up at the top and when I upload my code using dreamweaver my website works perfectly fine in Google Chrome, but anything regarding Javascript does not work once I'm in live mode for dreamweaver. I made sure to check that freezze javascript was off as well. Not sure what's wrong =/

Dreamweaver requires a full http path to be used so change the source to the following:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

As shown in the example above I simply added http: in the src tag.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM