let math = {
subject: '數學',
children: [
{ id: 1, title: '數一' },
{ id: 2, title: '數二' },
{ id: 3, title: '數三' },
{ id: 0, title: '待定' }
]
}
// 添加新屬性
math.remark = "備註";
// 刪除對象中某一屬性
delete math.subject
結果: