Home > Web Front-end > JS Tutorial > Example tutorial of adding button to a column of easyui in js

Example tutorial of adding button to a column of easyui in js

零下一度
Release: 2017-06-25 09:39:29
Original
2160 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template