一個很奇怪的 現(xiàn)象 ,求解析 :let fo1 = function(x, y = 1) {}fo1.length // 1let fo2 = function(y = 1 ,x ) {}fo2.length // 0let fo3 = function(y , x ,z = 2) {}fo3.length // 2let fo4 = function(y , x ,z) {}fo4.length // 3
函數(shù)聲明 或 函數(shù)賦值 的 length 屬性
溫溫醬
2018-12-22 19:18:38