var extTableData={}; //移除不需要传递的值 for (var a in extTableData) { if (sParamsTableName.indexOf(a) == -1) { delete extTableData[a]; } }