码迷,mamicode.com
首页 > Web开发 > 详细

JS模拟jQuery

时间:2014-08-23 21:29:11      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   java   os   io   ar   art   

bubuko.com,布布扣
 1 <!doctype html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title>Document</title>
 6     <script type="text/javascript">
 7 
 8         (function(w){
 9             w.$ = function(){
10                 alert("======");
11             };
12         })(window);
13 
14         $();//相当于window.$();
15     </script>
16 </head>
17 <body>
18     
19 </body>
20 </html>
View Code

 

JS模拟jQuery

标签:style   blog   http   color   java   os   io   ar   art   

原文地址:http://www.cnblogs.com/sxmcACM/p/3931724.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!