我在Chrome上尝试了以下代码:
document.execCommand("insertBrOnReturn", false, true);
http://jsfiddle.net/uVcd5/
我将最后一个参数设置为true或false,行为不会改变:返回时,将添加新元素. 一定错过了什么......有什么想法吗? 撰写答案 回答问题...
将添加新元素. 一定错过了什么......有什么想法吗? 撰写答案 回答问题...
一定错过了什么......有什么想法吗?