//判断对象是否为空
var x = $dataGridGoodInfo.jqGrid("getRowData");
if (Object.keys(x).length === 0) {
console.log("对象为空");
}else{
console.log("对象不为null");
}