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]);
}
2023-07-19 22:16:16
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]);
}