我有一个文本输入绑定到focusin/focusout事件。 $(element)
.focusin(function(e) {})
.focusout(function(e) {
var to = e.relatedTarget || e.toElement;
// undefined in chrome, fine in IE
});
我使用1.7.2中,我明白这应该工作: // cell is a jquery representation of a <td> element
cell.append($("<input/>", { "type": "text" }).val(content));
cell.children()[0].focus();
cell.children()[0].on("blur", fun