A local variable, already declared in an enclosing block and therefore visible in a nested block, cannot be redeclared in the nested block.

 
  • 一个语句块里的变量,可以被其他语句块再次声明,但是不可以在嵌套语句块声明,但是在嵌套块里他是可视的。
今日热词
目录 附录 查词历史