<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
2 <script>
3 // 第一种写法
4 $(function(){
5 $("div").html("");
6 // add your code here
7 })
8
9 // 第二种写法
10 $(document).ready(function(){
11 $("div").html("");
12 $("a").click(function(){
13 // add your code here
14 })
15 })
16
17 // 第三种写法
18 window.onload = function(){
19 // add your code here
20 }
21 </script>
博客主要围绕jQuery的三种写法展开,虽未给出具体内容,但可知聚焦于jQuery这一前端技术的不同书写方式,对前端开发有一定参考价值。
1563

被折叠的 条评论
为什么被折叠?



