You use the function keyword to denote the start of a function and the var keyword to declare local (as opposed to global) variables, but you do not include the type of the variable being declared.
您可以使用function关键字开始函数的声明,使用var关键字来声明局部变量(这与全局变量不同),但是不用包括正在声明的变量的类型。
Both work fundamentally the same way, at compile time the keyword "var" is replaced with the correct scalar or array type for the associated expression.
二者的实现基础完全相同,即在编译时将“var”替换成为分析得到的正确的变量或数组类型表达式。
Note that when the var and scope attributes are present, the type of data structure used by JSTL to represent the parsed document is implementation-specific, allowing for vendor optimization.
注意,当var和 scope 属性存在时,JSTL用于表示分解后的文件的数据结构类型以实施为导向,从而厂商可以对其进行优化。
应用推荐