刚查了下 execCommand,发现它真的有点老了,现在主流都用 API 了,不过兼容性确实好一点,就是功能有点阉割...
document.execCommand('bold', false, null);
登录/注册