js自定义双击函数
//雙擊返回頭部
jq('.title-bar').click(function(){if(this.old_time){this.new_time = new Date().getTime();if(this.new_time-this.old_time<300){jq('body').animate({'scrollTop':0}, 500, function(){if(toTopCallBack) toTopCallBack();});}this.old_time = new Date().getTime();}else{this.old_time = new Date().getTime();}
});
?
轉載于:https://www.cnblogs.com/tujia/p/6140551.html
總結
- 上一篇: 5 分钟上手 ECharts
- 下一篇: go语言从零学起(二)--list循环删