JavaScript. Copy Code. function addKeyAndValue(arr, key, value) { for (i = 0; i < arr.length; i++) { obj = arr[i]; obj[key] = value; } ...
確定! 回上一頁