Home >Web Front-end >JS Tutorial >Example tutorial of adding button to a column of easyui in js
$("#totalTb").datagrid({
columns: [[
) ' ENTITY_START', title: 'Start time', width: 100, align: "center", halign: 'center' },
{ field: 'ENTITY_END', title: 'End time', width: 100, align: "center", halign: 'center' },
: 'ENTITY_RATE', title: 'Physical winning rate', width: 100, align: "right", halign: 'center' },
{ field: 'ENTITY_NUM', title: 'Total quantity', width: 80 , align: "right", halign: 'center' },
{ field: 'ENTITY_SEND_NUM', title: 'Quantity issued', width: 100, align: "right", halign: 'center' },
{Field: 'Entity_last_num', Title: 'The remaining quantity', width: 100, align: "right", halign: 'center'},
{
Field: 'operate', title: ' ', width: 100, align: "center", formatter: btnDetailed
(value, rowData, rowIndex) {
if (typeof rowData.ENTITY_NO == "string") {
return ' ';
}
}
Another: When using to add a button, when the button is clicked, the page will refresh
Use< ;input type="button" value="Details"/> The page will not be refreshed when clicking the button
or
The above is the detailed content of Example tutorial of adding button to a column of easyui in js. For more information, please follow other related articles on the PHP Chinese website!