0
我想添加一個按鈕來顯示在表格的每一行中,但是按鈕不會出現無法弄清楚原因。我是新來的玉器和節點JS玉表格單元格內的按鈕
玉文件
html
head
body
table.table.table(border='1')
thead
tr
th ID
th Name
th Age
th City
th Department
tbody
each row in rows
tr
td=row.id
td=row.name
td=row.age
td=row.city
td=row.department
td button(type='submit',onclick='edit("#{row.id}")') Edit
script.
function edit(d){
var val = confirm ("Do you want to edit the record ?");
if (val==true){
return true;
}
};