标签:eth code 函数表达式 this 声明式 pre class 声明 div
声明式:
function fn() { //do something }
函数表达式:
let fn = function () {
//do something
}
构造函数:
function Person(name,age){
this.name=name
this.age=age
}
let fn = new Person(‘syq‘,‘18‘)
标签:eth code 函数表达式 this 声明式 pre class 声明 div
原文地址:https://www.cnblogs.com/fan111/p/11994493.html