There are two ways to add new properties to an object: var obj = { key1: value1, key2: value2 };. Using dot notation: obj.key3 = "value3"; ...
確定! 回上一頁