摘要:        
一:区别两种普通的写法:jQuery(function(){});全写为jQuery(document).ready(function(){ });(function(){})(jQuery);其实际上是执行()(para)匿名方法,只不过是传递了jQuery对象。jQuery(function(){ });用于存放操作DOM对象的代码,执行其中代码时DOM对象已存在。不可用于存放开发插件的代码,因为jQuery对象没有得到传递,外部通过jQuery.method也调用不了其中的方法(函数)。 (function(){ })(jQuery);用于存放开发插件的代码,执行其中代码时DOM...    阅读全文
posted @ 2013-12-04 23:00
一束光
阅读(252)
评论(0)
推荐(0)
        
            
        
        
摘要:        
/** * 保存首页到桌面 */ public function save_shortcut() { $shortcut = "[DEFAULT] BASEURL=http://www.19youxi.com/ [InternetShortcut] URL=http://www.19youxi.com IDList=IconIndex=43 IDList= IconFile=http://www.19youxi.com/...    阅读全文
posted @ 2013-12-04 17:42
一束光
阅读(1514)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号