2020年7月9日

js 技巧

摘要: 1、去除字符串中的HTML代码 let removeHTML = (str ='')=>str.replace(/<[\/\!]*[^<>]*>/ig,'')eg: console.log(removeHTML('<h1>hello world</h1>'));//hello world 2、inp 阅读全文

posted @ 2020-07-09 21:04 有匪 阅读(95) 评论(0) 推荐(0) 编辑

发送请求出现 provisional headers are shown 提示

摘要: 一般出现的可能性有: 跨域,请求被浏览器拦截。 请求被浏览器插件拦截。 服务器出错或者超时,没有真正的返回。 强缓存 from disk cache 或者 from memory cache 。 还有就是:后端接口请求头设置的问题 so,我遇到的这个问题就是 后端接口造成的。漂亮! 相关网址:htt 阅读全文

posted @ 2020-07-09 21:02 有匪 阅读(1006) 评论(0) 推荐(0) 编辑

2020-07-07 js面试知识点

摘要: 1.js的数据类型有哪些,值是如何存储的? //js一共有8种数据类型,其中有7中基本数据类型:undefined , null, boolean , number, string, symbol(es6新增),bigint(es10新增),object。object 引用数据类型(本质上是由一组无 阅读全文

posted @ 2020-07-09 21:01 有匪 阅读(103) 评论(0) 推荐(0) 编辑

导航