js对象属性名转小写

var assetData = $("#SysStaff").formobj();
for (var key in assetData) {
var lowerkey = key.toLowerCase();
//赋给新的属性名,删除旧的
assetData[lowerkey] = assetData[key];
delete assetData[key];
}

 

posted @ 2020-12-26 10:45  林荼  阅读(777)  评论(0编辑  收藏  举报