简体   繁体   中英

JQuery wont load in any browser other then Safari

So I was trying a little loading bar but my JQuery doesn't load when I try this in FireFox & Chrome, it only loads on Safari. this is my code:

<html>
<head>
<title>Mijn eerste spel</title>
<link href="opmaak.css" rel="stylesheet" type="text/css">
 <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="code.js"></script>
</head>
<body>
<div id="knop">
    <div id="textknop">Gooi Steen</div>
    <div id="laadbalk"></div>
</div>
<h1 id="money">$0</h1>
</body>
</html>

and my jq code is:

$(Document).ready(function(){
 alert("test")
});

In Safari it produces the popup but any other browser just ignores my code.

很简单,只需更改Documentdocument中的JavaScript代码。

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