解决IE和Edge浏览器对数据过长显示下划线解决方法
摘要:1 <meta name="format-detection" content="telephone=no,email=no,address=no">
阅读全文
posted @
2020-07-01 13:41
苍狼一笑
阅读(404)
推荐(0)
IE兼容性 -- endsWidth方法
摘要: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
苍狼一笑
阅读(318)
推荐(0)
IE兼容性 -- startWith方法
摘要: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
苍狼一笑
阅读(600)
推荐(0)
IE兼容性 ---解决find方法
摘要://判断是否有find方法if(!Array.prototype.find){ Array.prototype.find = function(callback) { return callback && (this.filter(callback) || [])[0]; }; }
阅读全文
posted @
2020-07-01 13:32
苍狼一笑
阅读(764)
推荐(0)
IE兼容性 ---includes兼容性
摘要://这个是判断 没有includes 方法的 if (!Array.prototype.includes) { Object.defineProperty(Array.prototype, 'includes', { value: function(valueToFind, fromIndex) {
阅读全文
posted @
2020-07-01 13:29
苍狼一笑
阅读(2764)
推荐(0)
IE兼容性----解决findIndex
摘要:// 兼容ie数组没有findIndex方法 if (!Array.prototype.findIndex) { Object.defineProperty(Array.prototype, 'findIndex', { value: function(predicate:any) { // 1.
阅读全文
posted @
2020-07-01 13:27
苍狼一笑
阅读(1508)
推荐(0)
解决IE浏览器中点击按钮上传无效的问题
摘要:前几天写了上传功能:就是点击按钮上传,在谷歌中是没有任何问题的,可以弹出选择文件;但是在IE浏览器中点击没有任何效果; 问题代码如下: 后来发现在Firefox、IE浏览器中button标签内部可以含有其他标签,但是不能对内部标签绑定事件,button内部只能是文本,可以将button的标签换为p,
阅读全文
posted @
2020-06-29 13:43
苍狼一笑
阅读(1646)
推荐(0)