export function registerApplication(loadFunction) { if (typeof loadFunction !== "function") { loadFunction = () => Promise.resolve(loadFunction); } }
假如参数是对象或者函数,如何处理
原文:https://www.cnblogs.com/TTblog5/p/13051247.html