search

Home  >  Q&A  >  body text

How does a js external function call the object in the callback function?

!function(a,b){
    f = b();//这里F就是对象
}(this,function(){
.......
.......
})

function e(){
    //如何在e这个函数里面调用F这个对象
    //比如
    //var s = f.xx.xx.xx;

}

按键盘手指磨破皮按键盘手指磨破皮1688 days ago991

reply all(1)I'll reply

  • 按键盘手指磨破皮

    按键盘手指磨破皮2020-04-09 18:08:40

    It should be said how to call the object in the self-made function

    reply
    0
  • Cancelreply