箭头函数与普通函数
记录下箭头函数与普通函数的区别
// 箭头函数
let arrow = () => {
console.log('我是箭头函数')
}
// 普通函数
let fun = function() {
console.log('我是普通函数')
}
← async
记录下箭头函数与普通函数的区别
// 箭头函数
let arrow = () => {
console.log('我是箭头函数')
}
// 普通函数
let fun = function() {
console.log('我是普通函数')
}
← async