简体   繁体   中英

Javascript not working suddenly on all browsers

Hi I have been working on a fairly simple page with very light and common javascript (simple query, less, a slider I've used before) Everything was just great until randomly all javascript stopped working in all browswers. My web inspector says this 在此处输入图片说明

All my javascript is showing up in another language in the web inspector and says "Semantic issue invalid character /u12709" I don't even know where that character is. When this happened I wasn't even working on javascript. I copied some text into the html, just copy. You can see the full page at densciencega.com or here is just the head code

<head>
<title>Dent Science</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="//use.typekit.net/yfc0oou.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link rel="stylesheet/less" type="text/css" href="main.less" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script type="text/javascript" src="scripts/less-1.3.3.min.js"></script>
<script type="text/javascript" src="scripts/main.js"></script>
<script type="text/javascript" src="scripts/smooth.pack.js"></script>
<script type="text/javascript" src="scripts/jquery.bxslider.min.js"></script>

</head>

Is your local copy of the JavaScript file correct, and only appears broken once you upload it?

Try changing your FTP settings to force binary upload instead of ASCII - I've seen this happen before with FileZilla using ASCII uploads.

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