摘要: 1.数组交集 普通数组 const arr1 = [1, 2, 3, 4, 5 , 8 ,9],arr2 = [5, 6, 7, 8, 9]; const intersection = arr1.filter(function (val) { return arr2.indexOf(val) > - 阅读全文
posted @ 2021-01-07 16:37 PYiP 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1、get请求是可以被缓存的,post不可以; 2、post的安全性要比get的安全性高; 3、get请求刷新浏览器或回退时没有影响,post回退时会重新提交数据请求; 4、get请求可被缓存,post请求不会被缓存; 5、get请求保留在浏览器历史记录中,post请求不会保留在浏览器历史记录中; 阅读全文
posted @ 2021-01-07 16:31 PYiP 阅读(90) 评论(0) 推荐(0) 编辑