html5 有个 contentEditable 属性 可使标签可编辑,由于本人需要使用鼠标右击菜单使用了如下代码:

1 document.oncontextmenu=new Function("event.returnValue=false;");
2 document.onselectstart=new Function("event.returnValue=false;");

由于是后做右键菜单的,项目使用的时候,Boom!这两句代码会屏蔽掉鼠标的编辑事件,不过亲测火狐中未受影响

 

相关文章:

  • 2021-06-19
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-19
  • 2021-10-05
  • 2021-12-19
  • 2022-02-26
  • 2021-11-07
  • 2022-12-23
相关资源
相似解决方案