博客园站长
这是人类成长进步中记录的每一时刻

 

 

 

$("#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); }

  

posted on 2022-07-04 20:10  dm3344  阅读(131)  评论(0编辑  收藏  举报