开发者

Can I select multiple variables in a single Javascript command?

Does Javascript have a built-开发者_如何学JAVAin syntax for selecting multiple variables?

Say I'd like to set a group of variables to equal 0.

Is there some way to combine

x = 0
y = 0
n = 0
a = 0 

and so on, into one command?

Or am I getting spoiled by jQuery and CSS-style object selection?


x = y = n = a = 0;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜