-1
我從jquery.com網站下載了jQuery v3.1.1(未壓縮),並添加了將它包含在html中的腳本,並編寫了一個警報方法來檢查它是否工作。原來,當我使用的document.ready或onload事件()函數什麼也沒發生,只是jQuery的不工作.... 我的代碼....jquery方法不工作
<srcipt type="text/javascript" src="scripts/jquery-3.1.1.js"></srcipt>
<script>
$(document).ready(function() {
alert("Hello, world");
});
</script>
你檢查過加載corectly,任何404等腳本? –
瀏覽器控制檯的輸出也會很好! – Pingbeat
''不' ' –
urbz