const foo = Promise.all([10, 20])foo.then( // 這里沒有看到傳入?yún)?shù)[10, 20]的形參,如何解開這個數(shù)組的? Function.apply.bind((x, y) => { console.log(x, y) // 10, 20 // null為什么一定要寫? }, null))https://jsfiddle.net/mmm0821/...
Function.apply.bind(fn, null)是如何運行分開參數(shù)的
拉風(fēng)的咖菲貓
2018-12-28 19:14:07