闭包
function a(num) {
return function () {
console.log(num, 2)
}
}
let s = a(2)
s()
var one = (function (i) {
var num = 10;
return function () {
console.log(num++)
}
})(2)
网友评论