[code style]javascript style

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

 

posted @ 2014-05-20 09:39  ipup  阅读(182)  评论(0编辑  收藏  举报