function a(x=y,y){console.log(x)} a(undefined,1) 對于函數傳參有相互關系的表達式該如何理解?function a(x = y, y) {
console.log(x); // y is not defined
}
function b(x, y = x){
console.log(y); // 1
}
a(undefined, 1)
b(1, undefined)
哪位能給講解下一個函數?
鴻蒙傳說
2018-10-11 13:34:06