首页
vue
TypeScript
JavaScript
scss
css3
html5
php
MySQL
redis
jQuery
ES6+ 详解教程
前言
ECMAScript 6 简介
let 和 const 命令
变量的解构赋值
字符串的扩展
字符串的新增方法
正则的扩展
数值的扩展
函数的扩展
数组的扩展
对象的扩展
对象的新增方法
运算符的扩展
Symbol 数据类型
Set 和 Map 数据结构
Proxy 代理
Reflect 映射
Promise 对象
Iterator 和 for...of 循环
Generator 函数的语法
Generator 函数的异步应用
async、await 异步函数
Class 的基本语法
Class 的继承
Module 的语法
Module 的加载实现
异步遍历器
ArrayBuffer 对象
Decorator 装饰器
编程风格
读懂 ECMAScript 规格
Es6+ 版本特性
ECMAScript 2015(ES6)新特性
ECMAScript 2016(ES7)新特性
ECMAScript 2017(ES8)新特性
ECMAScript 2018(ES9)新特性
ECMAScript 2019(ES10)新特性
ECMAScript 2020(ES11)新特性
ECMAScript 2021(ES12)新特性
ECMAScript 2022(ES13)新特性
JavaScript 基础
什么是 JavaScript 语言
JavaScript 用法
JavaScript 语句
JavaScript 标识符
JavaScript 变量
JavaScript 注释
JavaScript 编程风格
JavaScript 错误处理机制
JavaScript 内存管理和垃圾回收机制
JavaScript 数据类型
字符串类型(string)
数值类型(number)
大整数类型(BigInt)
布尔值类型(boolean)
null 和 undefined 类型
Symbol 类型
对象类型(object)
函数类型(function)
数组类型(array)
typeof 判断数据类型
数据类型的转换
JavaScript 运算符
算术运算符
比较运算符
布尔运算符
二进制位运算符
void 运算符
逗号运算符
运算符的优先级
JavaScript 内置对象(标准库)
Object 对象
属性描述对象
Array 对象
包装对象
Boolean 对象
Number 对象
String 对象
Math 对象
Date 对象
RegExp 对象
JSON 对象
console 对象
JavaScript 异步操作
异步操作概述
定时器
Promise 对象概述
JavaScript 面向对象编程
实例对象与构造函数(new 命令)
this 关键字
对象的继承和原型
Object 对象的相关方法
严格模式(use strict)
JavaScript DOM
DOM 概述
Node 接口
NodeList 接口
HTMLCollection 接口
ParentNode 接口
ChildNode 接口
Document 节点
Element 节点
Attribute 节点
Text 节点
DocumentFragment 节点
CSS 操作
Mutation Observer API
JavaScript 事件
EventTarget 接口
事件模型
Event 对象
鼠标事件
键盘事件
进度事件
表单事件
触摸事件
拖拉事件
资源事件
session 历史事件
网页状态事件
窗口事件
剪贴板事件
焦点事件
CustomEvent 接口
GlobalEventHandlers 接口
JavaScript 浏览器模型
浏览器环境概述
window 对象
Navigator 对象
Screen 对象
Cookie
XMLHttpRequest 对象
同源限制
CORS 通信
Storage 接口
History 对象
Location 对象
URL 的编码和解码
URL 接口
URLSearchParams 对象
ArrayBuffer
Blob 对象
File 对象
FileList 对象
FileReader 对象
FormData 对象
IndexedDB API
Web Worker
JavaScript 网页元素接口
<a> 元素
<img> 元素
<form> 元素
<input> 元素
<button> 元素
<option> 元素
<video>,<audio>
JavaScript 全局属性
Infinity 无穷大
NaN 非数字
undefined
null 空
globalThis
JavaScript 全局函数
eval()
isFinite()
isNaN()
parseFloat()
parseInt()
decodeURI()
encodeURI()
decodeURIComponent()
encodeURIComponent()
JavaScript Object 对象
Object
new Object()
构造函数
Object.is()
Object.keys()
Object.getOwnPropertyNames()
Object.getOwnPropertySymbols()
Object.values()
Object.defineProperty()
Object.defineProperties()
Object.entries()
Object.fromEntries()
Object.hasOwn()
Object.getOwnPropertyDescriptor()
Object.getOwnPropertyDescriptors()
Object.create()
Object.assign()
Object.preventExtensions()
Object.isExtensible()
Object.freeze()
Object.isFrozen()
Object.seal()
Object.isSealed()
Object.getPrototypeOf()
Object.setPrototypeOf()
Object.prototype.__proto__
Object.prototype.constructor
Object.prototype.valueOf()
Object.prototype.toString()
Object.prototype.toLocaleString()
Object.prototype.hasOwnProperty()
Object.prototype.isPrototypeOf()
Object.prototype.propertyIsEnumerable()
JavaScript Function 对象
Function
new Function()
Function.length
Function.name
Function.prototype.bind()
Function.prototype.apply()
Function.prototype.call()
Function.prototype.toString()
JavaScript Arguments 对象
Arguments
arguments.callee
arguments.length
arguments[@@iterator]()
JavaScript Array 对象
Array
new Array()
Array.isArray()
Array.of()
Array.from()
get Array[@@species]
Array.prototype[@@unscopables]
Array.prototype.length
Array.prototype.keys()
Array.prototype.values()
Array.prototype[@@iterator]()
Array.prototype.entries()
Array.prototype.map()
Array.prototype.forEach()
Array.prototype.reduce()
Array.prototype.reduceRight()
Array.prototype.flat()
Array.prototype.flatMap()
Array.prototype.some()
Array.prototype.every()
Array.prototype.includes()
Array.prototype.at()
Array.prototype.indexOf()
Array.prototype.lastIndexOf()
Array.prototype.find()
Array.prototype.findIndex()
Array.prototype.findLast()
Array.prototype.findLastIndex()
Array.prototype.push()
Array.prototype.pop()
Array.prototype.unshift()
Array.prototype.shift()
Array.prototype.fill()
Array.prototype.join()
Array.prototype.concat()
Array.prototype.copyWithin()
Array.prototype.slice()
Array.prototype.splice()
Array.prototype.filter()
Array.prototype.sort()
Array.prototype.reverse()
Array.prototype.toString()
Array.prototype.toLocaleString()
JavaScript Boolean 对象
Boolean
new Boolean()
Boolean.prototype.valueOf()
Boolean.prototype.toString()
JavaScript Symbol 对象
Symbol
Symbol.iterator
Symbol.asyncIterator
Symbol.match
Symbol.matchAll
Symbol.replace
Symbol.search
Symbol.split
Symbol.species
Symbol.for()
Symbol.keyFor()
Symbol.hasInstance
Symbol.isConcatSpreadable
Symbol.unscopables
Symbol.toPrimitive
Symbol.toStringTag
Symbol.prototype.description
Symbol.prototype.valueOf()
Symbol.prototype.toString()
Symbol.prototype[@@toPrimitive]
JavaScript Number 对象
Number
new Number()
Number.NaN
Number.POSITIVE_INFINITY
Number.NEGATIVE_INFINITY
Number.MAX_SAFE_INTEGER
Number.MIN_SAFE_INTEGER
Number.MAX_VALUE
Number.MIN_VALUE
Number.EPSILON
Number.isNaN()
Number.isFinite()
Number.isSafeInteger()
Number.isInteger()
Number.parseInt()
Number.parseFloat()
Number.prototype.valueOf()
Number.prototype.toString()
Number.prototype.toFixed()
Number.prototype.toExponential()
Number.prototype.toPrecision()
Number.prototype.toLocaleString()
JavaScript BigInt 对象
BigInt
BigInt()
BigInt.asIntN()
BigInt.asUintN()
BigInt.prototype.valueOf()
BigInt.prototype.toString()
BigInt.prototype.toLocaleString()
JavaScript Math 对象
Math
Math.E
Math.LN10
Math.LN2
Math.LOG10E
Math.LOG2E
Math.PI
Math.SQRT1_2
Math.SQRT2
Math.abs()
Math.ceil()
Math.floor()
Math.round()
Math.trunc()
Math.random()
Math.fround()
Math.max()
Math.min()
Math.pow()
Math.hypot()
Math.sqrt()
Math.cbrt()
Math.log2()
Math.log10()
Math.log1p()
Math.log()
Math.exp()
Math.expm1()
Math.clz32()
Math.imul()
Math.sin()
Math.asin()
Math.cos()
Math.acos()
Math.tan()
Math.atan()
Math.atan2()
Math.sinh()
Math.asinh()
Math.cosh()
Math.tanh()
Math.atanh()
Math.sign()
JavaScript String 对象
String
String.length
String.fromCharCode()
String.fromCodePoint()
String.raw()
String.prototype.valueOf()
String.prototype.toString()
String.prototype.trim()
String.prototype.trimStart()、String.prototype.trimLeft()
String.prototype.trimEnd()、String.prototype.trimRight()
String.prototype.toLowerCase()
String.prototype.toUpperCase()
String.prototype.toLocaleLowerCase()
String.prototype.toLocaleUpperCase()
String.prototype.repeat()
String.prototype.padStart()
String.prototype.padEnd()
String.prototype.replace()
String.prototype.slice()
String.prototype.substring()
String.prototype.concat()
String.prototype.split()
String.prototype.search()
String.prototype.match()
String.prototype.matchAll()
String.prototype.includes()
String.prototype.indexOf()
String.prototype.lastIndexOf()
String.prototype.localeCompare()
String.prototype.startsWith()
String.prototype.endsWith()
String.prototype.charAt()
String.prototype.charCodeAt()
String.prototype.codePointAt()
String.prototype.normalize()
String.prototype[@@iterator]()
JavaScript RegExp 对象
RegExp
new RegExp()
get RegExp[@@species]
RegExp.lastIndex
RegExp.prototype.flags
RegExp.prototype.global
RegExp.prototype.ignoreCase
RegExp.prototype.multiline
RegExp.prototype.dotAll
RegExp.prototype.sticky
RegExp.prototype.unicode
RegExp.prototype.source
RegExp.prototype.test()
RegExp.prototype.exec()
RegExp.prototype[@@match]()
RegExp.prototype[@@matchAll]()
RegExp.prototype[@@replace]()
RegExp.prototype[@@search]()
RegExp.prototype[@@split]()
RegExp.prototype.toString()
JavaScript Date 对象
Date
Date.now()
Date.parse()
Date.UTC()
Date.prototype.getTime()
Date.prototype.setTime()
Date.prototype.getTimezoneOffset()
Date.prototype.valueOf()
Date.prototype[@@toPrimitive]
Date.prototype.getFullYear()
Date.prototype.getMonth()
Date.prototype.getDate()
Date.prototype.getDay()
Date.prototype.getHours()
Date.prototype.getMinutes()
Date.prototype.getSeconds()
Date.prototype.getMilliseconds()
Date.prototype.getUTCFullYear()
Date.prototype.getUTCMonth()
Date.prototype.getUTCDate()
Date.prototype.getUTCDay()
Date.prototype.getUTCHours()
Date.prototype.getUTCMinutes()
Date.prototype.getUTCSeconds()
Date.prototype.getUTCMilliseconds()
Date.prototype.setFullYear()
Date.prototype.setMonth()
Date.prototype.setDate()
Date.prototype.setHours()
Date.prototype.setMinutes()
Date.prototype.setSeconds()
Date.prototype.setMilliseconds()
Date.prototype.setUTCFullYear()
Date.prototype.setUTCMonth()
Date.prototype.setUTCDate()
Date.prototype.setUTCHours()
Date.prototype.setUTCMinutes()
Date.prototype.setUTCSeconds()
Date.prototype.setUTCMilliseconds()
Date.prototype.toString()
Date.prototype.toJSON()
Date.prototype.toISOString()
Date.prototype.toDateString()
Date.prototype.toTimeString()
Date.prototype.toUTCString()
Date.prototype.toLocaleString()
Date.prototype.toLocaleDateString()
Date.prototype.toLocaleTimeString()
JavaScript Map 对象
Map
new Map()
get Map[@@species]
Map.prototype[@@toStringTag]
Map.prototype.get()
Map.prototype.set()
Map.prototype.size
Map.prototype.keys()
Map.prototype.values()
Map.prototype.forEach()
Map.prototype.entries()
Map.prototype.has()
Map.prototype.clear()
Map.prototype.delete()
JavaScript Set 对象
Set
new Set()
get Set[@@species]
Set.prototype[@@iterator]()
Set.prototype.add()
Set.prototype.size
Set.prototype.values()、Set.prototype.keys()
Set.prototype.forEach()
Set.prototype.entries()
Set.prototype.has()
Set.prototype.clear()
Set.prototype.delete()
JavaScript WeakMap 对象
WeakMap
new WeakMap()
WeakMap.prototype.get()
WeakMap.prototype.set()
WeakMap.prototype.has()
WeakMap.prototype.delete()
JavaScript WeakSet 对象
WeakSet
new WeakSet()
WeakSet.prototype.add()
WeakSet.prototype.has()
WeakSet.prototype.delete()
JavaScript Promise 对象
Promise
new Promise()
Promise.resolve()
Promise.reject()
Promise.all()
Promise.allSettled()
Promise.any()
Promise.race()
Promise.prototype.then()
Promise.prototype.catch()
Promise.prototype.finally()
JavaScript Generator 对象
Generator
Generator.prototype.next()
Generator.prototype.return()
Generator.prototype.throw()
GeneratorFunction
AsyncFunction
JavaScript Proxy 对象
Proxy
Proxy.revocable()
handler.get()
handler.set()
handler.defineProperty()
handler.deleteProperty()
handler.has()
handler.apply()
handler.ownKeys()
handler.getOwnPropertyDescriptor()
handler.isExtensible()
handler.preventExtensions()
handler.getPrototypeOf()
handler.setPrototypeOf()
handler.construct()
JavaScript Reflect 对象
Reflect
Reflect.get()
Reflect.set()
Reflect.apply()
Reflect.has()
Reflect.isExtensible()
Reflect.preventExtensions()
Reflect.ownKeys()
Reflect.getOwnPropertyDescriptor()
Reflect.getPrototypeOf()
Reflect.setPrototypeOf()
Reflect.construct()
JavaScript JSON 对象
JSON
JSON.parse()
JSON.stringify()
JavaScript ArrayBuffer 对象
ArrayBuffe
get ArrayBuffer[@@species]
ArrayBuffer.isView()
ArrayBuffer.prototype.byteLength
ArrayBuffer.prototype.slice()
JavaScript SharedArrayBuffer 对象
SharedArrayBuffer
new SharedArrayBuffer()
get SharedArrayBuffer[@@species]
SharedArrayBuffer.prototype.byteLength
SharedArrayBuffer.prototype.slice()
JavaScript Atomics 对象
Atomics
Atomics.load()
Atomics.store()
Atomics.add()
Atomics.sub()
Atomics.exchange()
Atomics.compareExchange()
Atomics.isLockFree()
Atomics.notify()
Atomics.wait()
Atomics.waitAsync()
Atomics.and()
Atomics.or()
Atomics.xor()
JavaScript DataView 对象
DataView
DataView.prototype.buffer
DataView.prototype.byteLength
DataView.prototype.byteOffset
DataView.prototype.getInt8()
DataView.prototype.getUint8()
DataView.prototype.getInt16()
DataView.prototype.getUint16()
DataView.prototype.getInt32()
DataView.prototype.getUint32()
DataView.prototype.getFloat32()
DataView.prototype.getBigInt64()
DataView.prototype.getBigUint64()
DataView.prototype.getFloat64()
DataView.prototype.setInt8()
DataView.prototype.setUint8()
DataView.prototype.setInt16()
DataView.prototype.setUint16()
DataView.prototype.setInt32()
DataView.prototype.setUint32()
DataView.prototype.setFloat32()
DataView.prototype.setBigInt64()
DataView.prototype.setBigUint64()
DataView.prototype.setFloat64()
JavaScript TypedArray 对象
TypedArray
get TypedArray[@@species]
TypedArray.name
TypedArray.of()
TypedArray.from()
TypedArray.BYTES_PER_ELEMENT
TypedArray.prototype.buffer
TypedArray.prototype.byteLength
TypedArray.prototype.byteOffset
TypedArray.prototype.length
TypedArray.prototype.keys()
TypedArray.prototype.values()
TypedArray.prototype[@@iterator]()
TypedArray.prototype.entries()
TypedArray.prototype.map()
TypedArray.prototype.forEach()
TypedArray.prototype.reduce()
TypedArray.prototype.reduceRight()
TypedArray.prototype.every()
TypedArray.prototype.some()
TypedArray.prototype.includes()
TypedArray.prototype.indexOf()
TypedArray.prototype.lastIndexOf()
TypedArray.prototype.at()
TypedArray.prototype.find()
TypedArray.prototype.findIndex()
TypedArray.prototype.findLast()
TypedArray.prototype.findLastIndex()
TypedArray.prototype.set()
TypedArray.prototype.fill()
TypedArray.prototype.join()
TypedArray.prototype.copyWithin()
TypedArray.prototype.slice()
TypedArray.prototype.subarray()
TypedArray.prototype.filter()
TypedArray.prototype.sort()
TypedArray.prototype.reverse()
TypedArray.prototype.toString()
TypedArray.prototype.toLocaleString()
Int8Array
Uint8Array
Uint8ClampedArray
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
Float64Array
BigInt64Array
BigUint64Array
JavaScript Error 对象
Error
new Error()
Error.prototype.message
Error.prototype.name
Error.prototype.cause
Error.prototype.toString()
EvalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
JavaScript Intl 对象
Intl
Intl.getCanonicalLocales()
Intl.supportedValuesOf()
Intl.Collator
Intl.DateTimeFormat
Intl.ListFormat
Intl.NumberFormat
Intl.PluralRules
Intl.RelativeTimeFormat
Intl.Locale
JavaScript WebAssembly 对象
WebAssembly
WebAssembly.instantiateStreaming()
WebAssembly.validate()
WebAssembly.compile()
WebAssembly.compileStreaming()
WebAssembly.instantiate()
WebAssembly.Module
WebAssembly.Global
WebAssembly.Memory()
WebAssembly.Table()
WebAssembly.CompileError()
WebAssembly.RuntimeError()
WebAssembly.LinkError()
WebAssembly.Tag
WebAssembly.Exception