设置标签的属性contenteditable=true即可
var edittd1 = document.getElementsByTagName('td')[1];
edittd1.setAttribute("contenteditable", "true");
设置标签的属性contenteditable=true即可
var edittd1 = document.getElementsByTagName('td')[1];
edittd1.setAttribute("contenteditable", "true");