Skip to content
hxDocs
搜索文档
K
Main Navigation
首页
基础知识
html
javascript
css
nodejs
nestjs
axios
vue全家桶
git
jquery
scss
typescript
vite
组件
form表单
权限级联
gis
leaflet
cesium
openlayers
threejs
mapbox
arcgis
插件扩展
hooks
插件扩展
utils
vscode插件
开发部署
github
nginx
扩展工具
生成表单数据
我的
关于我
分享
项目
工程化
面试集锦
脚手架
开发脚手架
其它
其它
软件
Appearance
Menu
返回顶部
快速导航
函数
apply/call/bind
作用:改变this 指向
区别: - apply call 改变指向同时执行函数; - bind 仅改变指向不执行函数 - apply 可以传递数组
this
箭头函数 指向外部作用域 ;场景:定时器 、逻辑(内藏函数使用外部对象的this 跨级别使用外部this,若没有直到找见 window 若是严格模式 直接输输出undefined)
普通函数 谁调用指向谁
打赏作者