假如参数是对象或者函数,如何处理


export function registerApplication(loadFunction) { if (typeof loadFunction !== "function") { loadFunction = () => Promise.resolve(loadFunction); } }

 

posted @ 2020-06-05 18:11  TTtttt5  阅读(134)  评论(0编辑  收藏  举报