|
|
@ -16,6 +16,18 @@ |
|
|
|
<th>通过数量</th> |
|
|
|
<th>通过数量</th> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
var lineHeight = 0; |
|
|
|
|
|
|
|
(function () { |
|
|
|
|
|
|
|
var div = document.createElement('div'); |
|
|
|
|
|
|
|
div.style.position = 'fixed'; |
|
|
|
|
|
|
|
div.style.left = -10000; |
|
|
|
|
|
|
|
div.style.visibility = 'hidden'; |
|
|
|
|
|
|
|
div.innerText = '测试,Test.'; |
|
|
|
|
|
|
|
document.body.appendChild(div); |
|
|
|
|
|
|
|
lineHeight = div.clientHeight; |
|
|
|
|
|
|
|
})(); |
|
|
|
|
|
|
|
</script> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
<% |
|
|
|
<% |
|
|
|
let i = (paginate.currPage - 1) * paginate.perPage; |
|
|
|
let i = (paginate.currPage - 1) * paginate.perPage; |
|
|
@ -30,7 +42,8 @@ |
|
|
|
(function () { |
|
|
|
(function () { |
|
|
|
var html = <%- JSON.stringify(user.information) %>; |
|
|
|
var html = <%- JSON.stringify(user.information) %>; |
|
|
|
var elem = document.createElement('div'); |
|
|
|
var elem = document.createElement('div'); |
|
|
|
elem.style = 'max-height: 50px; overflow: hidden; width: 100%; max-width: 840px; '; |
|
|
|
elem.style = 'overflow: hidden; width: 100%; max-width: 840px; '; |
|
|
|
|
|
|
|
elem.style.maxHeight = lineHeight + 'px'; |
|
|
|
elem.innerHTML = html; |
|
|
|
elem.innerHTML = html; |
|
|
|
var imgs = Array.from(elem.getElementsByTagName('img')); |
|
|
|
var imgs = Array.from(elem.getElementsByTagName('img')); |
|
|
|
for (var i in imgs) imgs[i].parentNode.removeChild(imgs[i]); |
|
|
|
for (var i in imgs) imgs[i].parentNode.removeChild(imgs[i]); |
|
|
|