// js如何判断一个对象{}是否为空对象,没有任何属性
if (typeof model.rows === "object" && !(model.rows instanceof Array)){
var hasProp = false;
for (var prop in model.rows){
hasProp = true;
break;
}
if (hasProp){
model.rows = [model.rows];
}else{
throw "model.rows is empty object";
return false;
}
}