直接统一成string function getVersion() { return `${(newFn ?? oldFn)()}` } if (appVersion === '1') { do something }
阅读量:1
点赞量:0