最近在使用一本教材學習web開發(fā),在學到jquery時,書中給出了一個實例。但我在實際使用中無法實現(xiàn)預計的功能。代碼如下:<html><head> <script type="text/javascipt" src="http://apps.bdimg.com/libs/jquery/1.6.4/jquery.min.js"></script></head><body> <p id="message">Clike the button to hide me.</p> <button type="button" onclick="$('p').toggle();">Toggle the message</button></body></html>大學暑假在家,百無聊賴,于是開始學習一些新知識。菜鳥一只,請大家多多賜教。
html事件處理使用jquery的一個問題
胡子哥哥
2018-12-12 17:21:05