[code style]javascript style
时间:2014-05-22 05:58:00
收藏:0
阅读:271
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 |
var
globalVariable=null;var
globalObject={ init:function(){ $.extend({method:function(e){e}}); //jquery static method extend $.fn.extend(); //jquery instance method extend String.prototype.reverse=function(e){this} //js method extend this.method; //initailize object method $(function(){ globalObject.method; //initailize page download object method }); }, tip:function(){ },}void globalObject.init(); //if ref in head |
评论(0)