深度學(xué)習(xí) Kaggle大賽M5-時(shí)間序列預(yù)測比賽指導(dǎo)班(數(shù)據(jù)科學(xué))
bind
bind
的用法在之前有講過,這個(gè) API 就是返回一個(gè)函數(shù) + 綁定 this
示例四
let obj = { a: 1 }function fn(){
? ?console.log( this )
? ?console.log( this.a )}let newFn = fn.bind( obj )newFn()
標(biāo)簽: