0
後我修改直通JavaScript的HTML,我想,當我點擊ESC鍵,它會返回到HTML的原始形式:還原至原始的HTML按Esc鍵
if ($("#div").show()) {
$("#div1").empty();
$("#div1").html("<input class='tabledit-input form-control' type='text' value='" + file[0].name + "'>");
$("#div2").empty();
$("#div2").html("<input type='text' class='form-control' placeholder='div2'>");
$("#div3").empty();
$("#div3").html("<input type='text' class='form-control' placeholder='div3'>");
} else if (e.keyCode == 27) {
//what to do here?
}