首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

JS 技能积累

2013-02-18 
JS 技巧积累判断是否存在于var a b in c字符串转数组新写法var split split,S ,events c

JS 技巧积累

    判断是否存在于
    var a = "b" in c;
    字符串转数组新写法
    var split = "split",S = " ",    events = "click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[split](S);


 

var h = 2;h = ~~h;//怎么理解?


 

热点排行