1. Ajax【Asynchronous JavaScript and XML】 在不刷新页面的前提下,实现请求数据。实现 Ajax 的关键对象是 XHR【XMLHttpRequest】。在早期,Ajax 被称作 远程脚本。 现在 XHR 对象的 API 实际上已经过时,一般采用 Fetch API Read More
posted @ 2021-09-30 16:21
TwinkleG
Views(194)
Comments(0)
Diggs(0)
1. 同源策略:是一个重要的安全策略,它用于限制一个资源如何能与另一个资源进行交互。它能帮助阻隔恶意攻击,减少可能被攻击的媒介。 如果两个 URL 的协议、域名以及端口号均相等,那么称这两个 URL 为同源的. 2. 举例说明同源 URL:下表给出了与 URL http://store.compan Read More
posted @ 2021-09-30 16:06
TwinkleG
Views(121)
Comments(0)
Diggs(0)
1. 模板字符串 2. 对象解构 3. 三个点 ... 4. Map、WeakMap、Set、WeakSet 5. Promise 6. async、await 7. 简写对象属性名 8. let const 9. class 10. Proxy Read More
posted @ 2021-09-30 15:38
TwinkleG
Views(32)
Comments(0)
Diggs(0)
1. apply:改变函数的 this 指向并立即调用,第一个参数是 this 指向,第二个参数为数组形式传入函数参数. Function.prototype.apply = function (thisArg) { let context = thisArg || window; // windo Read More
posted @ 2021-09-30 15:05
TwinkleG
Views(83)
Comments(0)
Diggs(0)
1. 在牛客看面试题时,经常看到这个题目,即 Object.prototype.toString.apply() / call(),所以记录一下查看的资料. 2. MDN 给出了比较详细的介绍:https://developer.mozilla.org/zh-CN/docs/Web/JavaScri Read More
posted @ 2021-09-30 14:44
TwinkleG
Views(152)
Comments(0)
Diggs(0)
1. JavaScript 有六种基本数据类型:Number | String | Boolean | Undefined | Null | 【ES6新增】Symbol,以及引用数据类型 Object 2. 对于基本数据类型的判断:typeof 操作符,对于不同的数据类型会返回不同的值,以下为七种常 Read More
posted @ 2021-09-30 14:17
TwinkleG
Views(94)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号