Site Notice
hello, world
Difference between revisions of "CompareApi"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 28: | Line 28: | ||
} | } | ||
</pre> | </pre> | ||
+ | |||
+ | '<table class="diff diffTable">' + | ||
+ | '<colgroup>' + | ||
+ | '<col class="diff-marker">' + | ||
+ | '<col class="diff-content">' + | ||
+ | '<col class="diff-marker">' + | ||
+ | '<col class="diff-content">' + | ||
+ | '</colgroup>' + | ||
+ | '<tbody>' + | ||
+ | '<tr class="diff-title">' + | ||
+ | '<td colspan="2" class="diff-otitle">diff-otitle placeholder</td>' + | ||
+ | '<td colspan="2" class="diff-ntitle">diff-ntitle placeholder</td>' + | ||
+ | '</tr>' + | ||
+ | diffTable + | ||
+ | '</tbody>' + | ||
+ | '</table>' |
Revision as of 01:48, 24 November 2019
返回数据如下:
{ "compare": { "fromid": 37, "fromrevid": 984, "fromns": 2, "fromtitle": "User:机智的小鱼君/common.js", "fromsize": 64, "fromuser": "机智的小鱼君", "fromuserid": 1, "fromcomment": "", "fromparsedcomment": "", "toid": 37, "torevid": 1167, "tons": 2, "totitle": "User:机智的小鱼君/common.js", "tosize": 289, "touser": "机智的小鱼君", "touserid": 1, "tocomment": "[InPageEdit] 没有编辑摘要", "toparsedcomment": "[InPageEdit] 没有编辑摘要", "prev": 983, "next": 1168, "diffsize": 1862, "*": "这里是diff的表格" } }
'
' + '<colgroup>' + '<col class="diff-marker">' + '<col class="diff-content">' + '<col class="diff-marker">' + '<col class="diff-content">' + '</colgroup>' + '<tbody>' + '' + '' + '' + '' + diffTable + '</tbody>' + 'diff-otitle placeholder | diff-ntitle placeholder |
'