2025年度比较好的豆包搜索优化公司排名:口碑不错的豆包搜索优化品牌企业推荐 - mypinpai
2025/12/22 15:32:21
变量声明
var(函数作用域,存在变量提升)let(块级作用域,可重新赋值)const(块级作用域,不可重新赋值)数据类型
Number、String、Boolean、null、undefined、Symbol(ES6)、BigInt(ES2020)Object(包括Array、Function、Date、RegExp等)typeof、instanceof、Object.prototype.toString.call()运算符
===)与宽松相等(==)的区别流程控制
if/else、switchfor、while、do...while、for...of(遍历可迭代对象)、for...in(遍历对象属性)函数定义
=>)...args)作用域链
高阶函数
map、filter、reduce)this指向
call/apply/bind)、new绑定this,继承外层作用域的this对象创建
Object.create()writable、enumerable、configurable、value/get/set原型链
__proto__(非标准)与Object.getPrototypeOf()prototype属性(构造函数特有)ES6 类
class语法糖、extends、super、静态方法(static)回调函数
Promise
pending、fulfilled、rejected).then()、.catch()、.finally()、Promise.all()、Promise.race()Async/Await
async声明函数,await暂停执行事件循环(Event Loop)
setTimeout、setInterval、I/O)与微任务(Promise.then、MutationObserver)DOM 操作
getElementById、querySelector、querySelectorAllcreateElement、appendChild、removeChild、innerHTML/textContentaddEventListener、事件委托BOM 操作
window对象:location、history、navigator、localStorage/sessionStorage变量解构
const [a, b] = [1, 2]const { name } = { name: 'Alice' }模板字符串
`)与插值表达式(`${var}`)扩展运算符
[...arr]、{...obj}模块化
import/export(ES6 模块)与require/module.exports(CommonJS)其他特性
Set/Map数据结构Proxy(代理对象)、Reflect(反射)function*)与yieldtry/catch/finallythrow new Error('message')Error类npm、yarn、pnpmWebpack、Vite、RollupESLint、PrettierJest、Mocha、Cypress以上知识点可根据实际需求深入学习,建议结合实践(如开发小项目)巩固理解。