We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
本来我是推荐使用onevar, 但是看了这个之后,我改变主意了。
但是,还是希望同一作用域下, 所有的变量在一个地方申明。
The text was updated successfully, but these errors were encountered:
个人感觉one var 只用于写在一行里比较合适。 多行的话容易忽略犯错。
变量还是尽量在函数开头声明好了,虽然要麻烦点。现在有人喜欢写 for (var i=0; i<100; i++){} 这种,比较容易误导。
Sorry, something went wrong.
完全赞同!
同俊哲
one var -1
for (var i=0; i<100; i++){}
这种写法还是比较自然的吧?我觉得函数内的变量随用随声明比较清晰。
No branches or pull requests
本来我是推荐使用onevar, 但是看了这个之后,我改变主意了。
但是,还是希望同一作用域下, 所有的变量在一个地方申明。
The text was updated successfully, but these errors were encountered: