javascript——定义函数方式

1:有名函数定义方式

 

 

2:匿名函数定义方法

https://www.cnblogs.com/wl0000-03/p/6050108.html

 

console.log(add(3,6));
(function(name){
console.log(name);
})("李银霞");

 

posted @ 2018-08-20 19:05  木&子  阅读(102)  评论(0编辑  收藏  举报