Session

Js使用委托

电脑版发表于:2021/3/17 15:18


定义

//定义一个委托的方法,如果有参数可以success(“在这里添加参数名”);
 var update = function (success) {
                success();
    }

使用

update(function () {
                  alert("方法被调用")
                });


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢