Skip to content

Commit 924daf7

Browse files
author
phillzou
committed
fix: 修复函数名称关键字错误
1 parent 4bfefb8 commit 924daf7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/debounce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
funciton debounce(fn, wait) {
1+
function debounce(fn, wait) {
22
let timeout = null;
33
return function() {
44
let context = this;

src/throttle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var throttle(fn, wait) {
1+
function throttle(fn, wait) {
22
let pre = new Date();
33
return function() {
44
let context = this;

0 commit comments

Comments
 (0)