SHARE
TWEET

Untitled

a guest Oct 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let isDoubleClick = false;
  2. $("#div1").click(function(){
  3.     if(isDoubleClick){
  4.         console.log("isDoubleClick");
  5.     }
  6.     else{
  7.         console.log("is NOT double click");
  8.     }
  9.     isDoubleClick = !isDoubleClick;
  10. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top