spread在UpdatePanel里,IE8里没有问题,IE11里spread.readyState不好用了,请问有没有别的替代方法?
<script type="text/javascript">
function ScrollToLastRow() {
if (spread.readyState == "complete") {
var spread = document.getElementById('<%=FpSpread1.ClientID %>');
var valRow = spread.GetRowCount() - 1;
spread.ScrollTo(valRow, 0);
spread.SetActiveCell(valRow, 0);
return false;
}
else if (spread.readyState == "loading") {
setTimeout(function () { ScrollToLastRow() }, 500);
}
}
</script> |
|