首页 > 代码库 > [code style]javascript style

[code style]javascript style

?
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