js改變對象的屬性名

var arr = [ { "courseName": "英語", "code": "english" }, { "courseName": "藥物化學", "code": "ywhx" } ]; var a = JSON.stringify(arr).replace(/courseName/g, "t
相關文章
相關標籤/搜索