- 博客(2)
- 收藏
- 关注
原创 JavaScript中函数定义的方法
JavaScript中函数如何定义 1. 函数声明 function 函数名(形参){ 方法体 return 返回值 } function add(a,b){ var total = a + b; return total; } add(1,2); 以上代码等价于 add(1,2); function add(a,b){ var total = a + b; return total; } 函数声明会被提升。 2
2020-08-16 16:12:11 114
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人