回到顶部:document.documentElement.scrollTop=0
获取地址栏的内容:
const url=window.location.href
强制转化为字符串:String(x)
强制转化为数字:Number(xx)
回到顶部:document.documentElement.scrollTop=0
获取地址栏的内容:
const url=window.location.href
强制转化为字符串:String(x)
强制转化为数字:Number(xx)