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】箭头函数