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")+'';
}

 

先写这么点...

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2021-12-20
  • 2021-06-01
  • 2022-01-13
  • 2022-02-22
  • 2021-05-31
猜你喜欢
  • 2021-07-31
  • 2022-01-20
  • 2021-07-30
  • 2022-02-26
相关资源
相似解决方案