开发者

Which is more proper javascript syntax? [closed]

开发者 https://www.devze.com 2023-01-22 06:17 出处:网络
It'开发者_Go百科;s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. F
It'开发者_Go百科;s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.
if (//some condition) {
//some code
} else {
//other code
}

or

if (//some condition) {
//some code
}
else {
//other code
}


I think the first one isn't good, and I have the same feelings about the second one

0

精彩评论

暂无评论...
验证码 换一张
取 消