使用: Element.prototype.isContentEditable, 可以判断某个元素节点是否可编辑.

document.body.isContentEditable;
// false

 

注意: 

1. Element.prototype.isContentEditable 只读; 有 true / false / inherit

2. Element.prototype.contentEditable 可读写, 有 true / false / inherit

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2022-02-20
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2021-06-02
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案