document.el.contentEditable , 让页面一个元素变为 一个可写的元素, 注意,它返回值的值永远是字符串
let isEdit = this.el.contentEditable;
this.el.contentEditable = ( isEdit == 'inherit' || isEdit == 'false' ) ? 'true' : 'false';
document.el.contentEditable , 让页面一个元素变为 一个可写的元素, 注意,它返回值的值永远是字符串
let isEdit = this.el.contentEditable;
this.el.contentEditable = ( isEdit == 'inherit' || isEdit == 'false' ) ? 'true' : 'false';