JS对象转小写

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

 

posted @ 2021-01-29 16:36  林荼  阅读(355)  评论(0编辑  收藏  举报