function deleteKeysStartingWith(obj, prefix) {
for (var key in obj) {
if (obj.hasOwnProperty(key) && key.indexOf(prefix) === 0) {
delete obj[key];
}
}
}
var obj = {
fileimg_cform_sysFiles1: "value1",
fileimg_cform_sysFiles2: "value2",
otherKey: "otherValue"
};
deleteKeysStartingWith(obj, 'fileimg_cform_sysFiles');
console.log(obj);
输出结果
{
otherKey: "otherValue"
}