Skip to content

Commit

Permalink
修订 debounce6.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mqyqingfeng committed Mar 28, 2018
1 parent d96284a commit d513b20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demos/debounce/debounce6.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ function getUserAction() {
return '111'
};

var result = debounce(getUserAction, 1000, true)
container.onmousemove = function(){
var result = debounce(getUserAction, 1000, true)();
console.log(result)
var res = result();
console.log(res)
}

0 comments on commit d513b20

Please sign in to comment.