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