发布网友 发布时间:2022-04-23 12:01
共2个回答
热心网友 时间:2022-04-22 18:40
<div class="top"><span title="返回顶部" id="gotop" class="gotop">gotop</span></div>
<script type="text/javascript">
(function(){
var gotop = document.getElementById('gotop');
gotop.onclick = function(){
window.scrollTo(0,0);
}
})()
热心网友 时间:2022-04-22 19:58
javascript:scroll(0,0);