1. 判断某个object中是否包含某个属性:
params.hasOwnProperty($scope.dataObj[i].alias) //true 包含
2.删除object中指定属性
delete params[$scope.dataObj[i].alias]; delete params.name;
3.
for (prop in myObject) { document.write("属性 '" + prop + "' 为 " + myObject[prop]); }