当前位置: 代码迷 >> JavaScript >> JS 技能积累
  详细解决方案

JS 技能积累

热度:289   发布时间:2013-02-18 10:50:49.0
JS 技巧积累
  1. 判断是否存在于

    var a = "b" in c;
  2. 字符串转数组新写法

    var split = "split",
    	S = " ",
        events = "click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[split](S);


 

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


 

  相关解决方案