2020年7月1日
摘要: 转载链接:https://www.cnblogs.com/tandaxia/p/13204481.html 版权声明 作者:TDX 出处:博客园TDX的技术博客--http://www.cnblogs.com/tandaxia 您的支持是对博主最大的鼓励,感谢您的认真阅读。 本文版权归作者和博客园共 阅读全文
posted @ 2020-07-01 13:57 苍狼一笑 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1 <meta name="format-detection" content="telephone=no,email=no,address=no"> 阅读全文
posted @ 2020-07-01 13:41 苍狼一笑 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1 String.prototype.endWith=function(str){ 2 if(str==null||str==""||this.length==0||str.length>this.length) 3 return false; 4 if(this.substring(this.le 阅读全文
posted @ 2020-07-01 13:37 苍狼一笑 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1 String.prototype.startWith=function(str){ 2 if(str==null||str==""||this.length==0||str.length>this.length) 3 return false; 4 if(this.substr(0,str.le 阅读全文
posted @ 2020-07-01 13:35 苍狼一笑 阅读(572) 评论(0) 推荐(0) 编辑
摘要: //判断是否有find方法if(!Array.prototype.find){ Array.prototype.find = function(callback) { return callback && (this.filter(callback) || [])[0]; }; } 阅读全文
posted @ 2020-07-01 13:32 苍狼一笑 阅读(745) 评论(0) 推荐(0) 编辑
摘要: //这个是判断 没有includes 方法的 if (!Array.prototype.includes) { Object.defineProperty(Array.prototype, 'includes', { value: function(valueToFind, fromIndex) { 阅读全文
posted @ 2020-07-01 13:29 苍狼一笑 阅读(2663) 评论(0) 推荐(0) 编辑
摘要: // 兼容ie数组没有findIndex方法 if (!Array.prototype.findIndex) { Object.defineProperty(Array.prototype, 'findIndex', { value: function(predicate:any) { // 1. 阅读全文
posted @ 2020-07-01 13:27 苍狼一笑 阅读(1461) 评论(0) 推荐(0) 编辑