CodeMirror.MergeView

最近項目上須要實現2個文本的比較展現功能,找了一圈發現CodeMirror.MergeView 自帶這個功能,其實裏面用的diff插件是Google的diff-match-patch,在github的星星還蠻多,就用選擇這個插件了。javascript 下面寫個demo以便備忘。css 安裝依賴 npm install codemirror npm install diff-match-patch
本站公眾號
   歡迎關注本站公眾號,獲取更多信息