好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

document.selection.createrange.text为空时怎么pastehtml?

document.selection.createrange.text为空时,也就是没有选中任何内容,只有一个光标,这个时候想插入一段html怎么办?pastehtml " font 会没有效果的!

当然如果选中了内容是可行的。


回复讨论(解决方案)

当我没问!内容为空时忘记添加内容了,所以看不见,其实html已经加进去了

查看更多关于document.selection.createrange.text为空时怎么pastehtml?的详细内容...

  阅读:39次