代码 Diff 对比
并排对比两段文本/代码的差异,高亮变更行
+0 新增-0 删除~2 修改
| 原始 | 修改后 |
|---|---|
| function hello() { | function hello() { |
| - console.log("hello") | + console.log("hello world") |
| return true | return true |
| } | } |
| -const x = 1 | +const x = 2 |
并排对比两段文本/代码的差异,高亮变更行
| 原始 | 修改后 |
|---|---|
| function hello() { | function hello() { |
| - console.log("hello") | + console.log("hello world") |
| return true | return true |
| } | } |
| -const x = 1 | +const x = 2 |