for (var key in assetData) {
var lowerkey = key.toLowerCase();
//赋给新的属性名,删除旧的
assetData[lowerkey] = assetData[key];
delete assetData[key];
}
时间: 2024-10-18 16:49:30
for (var key in assetData) {
var lowerkey = key.toLowerCase();
//赋给新的属性名,删除旧的
assetData[lowerkey] = assetData[key];
delete assetData[key];
}