知乎视频www.zhihu.com 相关代码 < 思路 npm install codemirror -s 安装库 然后做一下初始化,重要的事情是不要忘记引入相关的js和css 参考 官网地址github 项目地址