由于内部函数持有到外部函数的变量的引用,所以这个带属性a的范围对象将不会被垃圾收集。
Because the inner function holds a reference to the outer function's variables, the scope object with property a will not be garbage collected.
definition字符串包含模板定义(电子邮件的静态部分),它可以对外部变量(动态部分)进行引用。
The definition string contains the template definition (the static portion of the E-mail), which can make references to outside variables (the dynamic portion).
应用推荐