The definition string contains the template definition (the static portion of the E-mail), which can make references to outside variables (the dynamic portion).
definition字符串包含模板定义(电子邮件的静态部分),它可以对外部变量(动态部分)进行引用。
All four variables are declared outside the loop and therefore have excessive scope even though they're only used inside the loop.
所有这四个变量都是在循环外声明的,尽管它们仅在循环内部使用,但作用域不止于此。
One special case that shows up frequently is declaring variables outside of loops.
常见的一种特殊情况就是在循环外部声明变量。
So it's initialized outside the loop when it should be initialized inside the loop. Or conversely, inside the loop when it should be outside the loop. So look carefully at when variables are being initialized.
却忘记了,意思就是它本来应该,是在循环外初始化,但是却是在循环初始化的,所以在初始化变量的时候注意这一点。
应用推荐