一、onkeydown事件中添加“if(event.keyCode==13){return false;}”阻止按钮默认事件:
<button class="btn btn-action edit" title="编辑" onkeydown="if(event.keyCode==13){return false;}" onclick="editIscsiAclRules(\'' + row.iqn + '\',\'' + row.addr + '\',\'' + row.mac + '\',\'' + row.ident + '\')"><i class="fa fa-edit"></i></button> <button class="btn btn-action delete" title="删除" onkeydown="if(event.keyCode==13){return false;}" onclick="deleteIscsiAclRules(\'' + row.ident + '\')"><i class="fa fa-trash-o"></i></button>