Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ygs-code/vue
/ nativeBind
Function
nativeBind
vue.js:303–305 ·
view source on GitHub ↗
(fn, ctx)
Source
from the content-addressed store, hash-verified
301
302
//执行方式
303
function
nativeBind(fn, ctx) {
304
return
fn.bind(ctx)
305
}
306
307
//bing 改变this上下文
308
var
bind = Function.prototype.bind
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected