let handleBundleComplete = async () => { //不知道什么意思... handleBundleComplete = stats => !stats.stats[1].compilation.errors.length && runServer(); const server = await runServer(); const bs = browserSync.create(); bs.init({ ...isDebug ? {} : { notify: false, ui: false }, proxy: { target: server.host, middleware: [wpMiddleware, hotMiddleware], proxyOptions: { xfwd: true, }, }, }, resolve); };不明白這樣的寫法的含義?在函數內給函數自身賦值?let handleBundleComplete = async () => { handleBundleComplete = (...) => {...} ...}
javascript 求解!
慕仙森
2018-11-14 13:10:39