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;//怎么理解?
发布时间: 2013-02-18 10:50:49 作者: rapoo
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;//怎么理解?