0
Ich möchte einen Knopf hinzufügen, um in jeder Reihe der Tabelle gezeigt zu werden, aber der Knopf scheint nicht heraus zu finden, warum. Ich bin neu in Jade und Knoten jsKnopf innerhalb der Jadetischzelle
Jade
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;
}
};