240 发简信
IP属地:广东
  • 把arguments转换成数组

    function log(){ var args =Array.prototype.slice.call(arguments); console.log(args); }; ...

  • 递归求阶乘

    function self(index){ if(index==1) return 1; else return index*self(index-1); } var res...

  • 数组去重indexof方法

    var arr1 =[1,2,2,2,3,3,3,4,5,6], arr2 = []; for(var i = 0,len = arr1.length; i< len; i+...

  • input去掉默认的蓝线框

    css方法1: input { outline:none; } css方法2: input:focus { outline:none; }

  • 实现鼠标移入网页隐藏鼠标

    css方法: *{cursor:none!important;}