3
如果我使用的execCommand方法突出所选文本:的javascript:如何扭转range.execCommand方法
document.execCommand("HiliteColor", false, colour);
,因为它是建议in this page,然后我要回来,并取消高亮格式(也就是说,在我重点讲述一些文本之前,要回到这种情况),我该怎么办?
如果我使用的execCommand方法突出所选文本:的javascript:如何扭转range.execCommand方法
document.execCommand("HiliteColor", false, colour);
,因为它是建议in this page,然后我要回来,并取消高亮格式(也就是说,在我重点讲述一些文本之前,要回到这种情况),我该怎么办?
下面将删除格式:
document.execCommand("RemoveFormat", false, null);