w_click_twice
Posted rsapaper
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了w_click_twice相关的知识,希望对你有一定的参考价值。
var w_global_obj; var dat = new Date(); var w_golbal_count_millseconds; function w_click_twice(w_current_obj, w_period) { console.log(w_golbal_count_millseconds); var current = dat.getTime(); var w_this_period = current - w_golbal_count_millseconds; w_golbal_count_millseconds = current; if (w_global_obj != w_current_obj) { w_global_obj = w_current_obj; return true; } else if (w_this_period > w_period) { return true; } else { return false; } }
<script src="w_fun_click.js"></script>
以上是关于w_click_twice的主要内容,如果未能解决你的问题,请参考以下文章