JQuery入门案例
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>入门案例</title> <script type="text/javascript" src="../js/jquery-1.11.0.js"></script> <script> //js中文档加载完成 window.onload = function(){ alert("js中文档加载完成"); } window.onload = function(){ alert("js中文档加载完成测试是否覆盖"); } //JQ中文档加载完成测试 jQuery(document).ready(function(){ alert("JQ中文档加载完成第一次"); }); //简写 $(document).ready(function(){ alert("JQ中文档加载完成第二次"); }); //最简单的写法 $(function(){ alert("最简单的写法"); }); </script> </head> <body> </body> </html>
相关推荐
simonzhao0 2020-07-05
stonerkuang 2020-06-01
sswqycbailong 2020-06-01
麋鹿麋鹿迷了路 2020-05-29
ThinkingLink 2020-05-20
delmarks 2020-05-17
tomatoboryj 2020-02-13
Chriswang 2020-04-30
Wmeng0 2020-05-10
Caleb0 2020-04-25
码农成长记 2020-04-19
sunlizhen 2020-04-10
guozewei0 2020-03-06
donghongbz 2020-03-04
aSuncat 2020-02-29
angqiuli 2020-02-18
xiaof 2020-02-17