From d28fffe64a67e31c5489bb81721491c0cd1c3b1d Mon Sep 17 00:00:00 2001 From: NoKic233 <74362493+Nokic233@users.noreply.github.com> Date: Tue, 23 Sep 2025 10:58:14 +0800 Subject: [PATCH] fix: func.md typo --- docs/note/basis/func.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/note/basis/func.md b/docs/note/basis/func.md index a152310..aa8bb5f 100644 --- a/docs/note/basis/func.md +++ b/docs/note/basis/func.md @@ -20,7 +20,7 @@ var fnName = function(){ ```js // 参数:Function 接收任意多的参数,但最后一个参数总被认为是函数体,前面的参数是传入新函数的参数 -var fnName = new Function(a, b, c, 'return a + b + c') +var fnName = new Function('a', 'b', 'c', 'return a + b + c') ``` #### 【ES6】箭头函数