摘要:
/***** 主要需要一个变量(distinguish )来判断是哪种状态*****/ // 单击 once_click(item) { this.distinguish = true setTimeout(() => { if (this.distinguish) { // 处理单击事件的代码块 阅读全文
posted @ 2021-08-06 17:18
yw3692582
阅读(386)
评论(0)
推荐(0)
摘要:
// 文件结构如下, 父容器高度固定,内容超出时出现滚动条,现在需要获取滚动条的位置 <div id="center" style="height: 500px;overflow-y: auto;"> <div></div> </div> script: var center_scrollTop = 阅读全文
posted @ 2021-08-06 13:53
yw3692582
阅读(2946)
评论(0)
推荐(0)