05jQuery源码解析

来源:互联网 发布:gta5低配优化补丁 编辑:程序博客网 时间:2024/06/05 18:34
location = window.location,document = window.document,docElem = document.documentElement,存成变量有利于压缩操作
_jQuery = window.jQuery_$      = window.$防冲突的设计:其他的库中可能也有$
面向对象function Obj(){}Obj.prototype.init = function(){};Obj.prototype.css=function(){};var o1 = new Obj();Obj.init();Obj.css();
原创粉丝点击