在做網(wǎng)頁的時(shí)候把html、css、js分開三個(gè)文件了,其中XXX.html寫的是:<head>? ? ? ? <meta http-equiv="content-type" content="text/html; charset=utf-8">? ? ? ? <title>XXX.index</title>? ? ? ? <script type="text/javascript" src="XXX.js"></script>? ? ? ? <script src="/Users/……/jquery-3.2.1.min.js"></script>? ? </head>XXX.js寫的是:$(document).ready(function(){? ? $("#topMenu_area").click(function(){? ? ? ? $("#topMenu_area ul").hide();? ? });});報(bào)錯(cuò)信息如下:我要怎樣才能把jquery包加載進(jìn)來呢?
js單獨(dú)一個(gè)文件,寫jquery,提示$未定義,如何加載jquery包?
不想當(dāng)前端的鑒黃師不是好領(lǐng)導(dǎo)
2017-12-09 10:31:41