摘要: 通常我们会看到以下两种定义函数的方式:// 函数语句function fn(str){ console.log(str);};// 表达式定义var fnx=function(str){ console.log(str+ ' from fnx');};两种方式都创建了新的函数对象, 但函数声明语... 阅读全文
posted @ 2014-08-20 14:08 disneyland 阅读(198) 评论(0) 推荐(0)