面试押题JS押题JS 手写篇手写闭包手写闭包function f1() { var n = 999 function f2() { alert(n) } return f2}var result = f1()result() // 999