摘要: 在一个数组上 直接附加上另一个数组:Array.prototype.push.apply(array1, array2);将对象转换成一个数组:Array.prototype.slice.call(arguments);判断是不是一个数字:function isNumber(n){return !isNaN(parseFloat(n)) && isFinite(n);}给字符串添加去首末空格:String.prototype.trim = function(){returnthis.replace(/^\s+|\s+$/g, "");};判断是不是数组:fu 阅读全文
posted @ 2014-03-11 20:18 xiezhenzhong 阅读(243) 评论(0) 推荐(0) 编辑