https://eslint.org/docs/rules/no-loop-func#rule-details 1.由于闭包原因,JSloop中的function不要引用外部变量。 2.在Loop中也不可以更改外部变量。