Is there a way to determine if execCommand('undo') is executable? [JavaScript]

前端 未结 1 1140
醉话见心
醉话见心 2021-01-22 05:20

I am trying to determine if the execCommand(\'undo\') can be executed.

I\'ve tried this one:

if(document.execCommand(\'undo\'))
{
    document.execComman         


        
相关标签:
1条回答
  • 2021-01-22 05:37
    • document.queryCommandSupported http://msdn.microsoft.com/en-us/library/ms536681(VS.85).aspx
    • document.queryCommandEnabled http://msdn.microsoft.com/en-us/library/ms536676(VS.85).aspx

    (yes, Midas is based on IE interfaces)

    0 讨论(0)
提交回复
热议问题