1.取数组最大值,最小值
Math.max.apply(null,[1,2,3,32,3]); Math.min.apply(null,[1,2,3,32,3]);
2.旧版IE setTimeout(fn,0),延迟太大,可利用image 死链
var img = new Image(); img.onload = img.onerror = function(){ / * 回调方法 */ } img.src = "data:image/png," + Math.random();
3.获取唯一ID
function only(){ return setTimeour("1")+''; }
先写这么点...