1 $("#src-to-top");
2 document.getElementsByClassName();
示例:
var istt=$("#src-to-top");
istt[0].onclick=function(){
$(window).scrollTop(0);
}
1 $("#src-to-top");
2 document.getElementsByClassName();
示例:
var istt=$("#src-to-top");
istt[0].onclick=function(){
$(window).scrollTop(0);
}