課程
/前端開發
/jQuery
/jQuery基礎課程
怎么弄了沒那個效果呢。。。瀏覽器問題嗎?
2016-07-12
源自:jQuery基礎課程 1-2
正在回答
復制這段代碼,試看一下有沒有效果,如果還是沒有的話,及有可能是瀏覽器版本問題。
<!DOCTYPE html>
<html>
? ? <head>
? ? ? ? <title>#id選擇器</title>
? ? ? ? <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
? ? </head>
? ??
? ? <body>
? ? ? ? <div>div的內容</div>
? ? ? ? <div>Hello world!</div>
? ? ? ??
? ? ? ? <script type="text/javascript">
? ? ? ? ? ? $(" div").html("Hello iMooc!"); //填寫相應代碼
? ? ? ? </script>
? ? </body>
</html>
注意語法,空格
舉報
加入課程學習,有效提高前端開發速度
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-07-12
復制這段代碼,試看一下有沒有效果,如果還是沒有的話,及有可能是瀏覽器版本問題。
<!DOCTYPE html>
<html>
? ? <head>
? ? ? ? <title>#id選擇器</title>
? ? ? ? <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
? ? </head>
? ??
? ? <body>
? ? ? ? <div>div的內容</div>
? ? ? ? <div>Hello world!</div>
? ? ? ??
? ? ? ? <script type="text/javascript">
? ? ? ? ? ? $(" div").html("Hello iMooc!"); //填寫相應代碼
? ? ? ? </script>
? ? </body>
</html>
2016-07-12
注意語法,空格