Do you use var to declare both strings and numbers? -PHP Chinese website Q&A-Do you use var to declare both strings and numbers? -PHP Chinese website Q&A
Please watch and learn.
一般都用var声明的,js里会自己识别你定义的变量,也可以明确指定,在你知道这个变量肯定是什么的时候可以声明该类型的变量,一般还是用var比较好。
Do you use var to declare both strings and numbers? -PHP Chinese website Q&A-Do you use var to declare both strings and numbers? -PHP Chinese website Q&A
Please watch and learn.
一般都用var声明的,js里会自己识别你定义的变量,也可以明确指定,在你知道这个变量肯定是什么的时候可以声明该类型的变量,一般还是用var比较好。