$("#txx").datagrid({
                nowrap:false,
                idField:"id",
                rows:mydata,
                fit:true,
                rownumbers:true,
                singleSelect:true,
                pagination:true,
                pageList:[20,50,100],
                onDblClickRow: queryInfo,
                onClickRow: queryan,
                remoteSort:false,
                height:200,
                columns:[[{field:'SCZT',title:"状态",align:"center",width:70},
{
    field: 'ID', title: '操作', width: '35%', align: 'center', formatter: formatOper
}]]
});
function formatOper(val, row, index) {
            return '<input type="button" onclick="remove(\'' + row["PID"] + '\')" value="校验" />  <input type="button" onclick="removeXM(\'' + row["SCZT"] + '\')" value="删除" />';
        }
        function remove(pid) {
            alert(pid);
        }
        function removeXM(pid) {
            alert(pid);
        }