摘要:        
//处理事件冒泡,阻止默认事件工具类,兼容IEvar eventUtil={ // 添加句柄 addHandler:function(element,type,handler){ if(element.addEventListener){ element.addEventListe...    阅读全文
posted @ 2017-05-23 16:56
hubgit
阅读(377)
评论(0)
推荐(0)
        
            
        
        
摘要:        
定义: 0级DOM 分为2个:一是在标签内写onclick事件 二是在JS写onlicke=function(){}函数 1) 2) 2级DOM 只有一个:监听方法,原生有两个方法用来添加和移除事件处理程序:addEventListener()和removeEventListener()。 它们都有    阅读全文
posted @ 2017-05-23 15:28
hubgit
阅读(1103)
评论(0)
推荐(0)
        
            
        
        
摘要:        
在某网站看到一道js题,觉得有点意思 Some numbers have funny properties. For example: 89 --> 8¹ + 9² = 89 * 1 695 --> 6² + 9³ + 5⁴= 1390 = 695 * 2 46288 --> 4³ + 6⁴+ 2⁵    阅读全文
posted @ 2017-05-23 10:59
hubgit
阅读(354)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号