16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
|||
const row = $( e.target ).closest('tr'),
isLineno = row.children( '.diff-lineno' ).length ? 1 : 0,
rowLineno = isLineno ? row : row.prevAll( ':has(.diff-lineno)' ).
n = parseInt( rowLineno.children().last().text().match(/\d+/) ),
line = scroller.find( '.CodeMirror-linenumber' ).filter(function() {
|