开发者

Can I select multiple variables in a single Javascript command?

开发者 https://www.devze.com 2023-01-16 03:44 出处:网络
Does Javascript have a built-开发者_如何学JAVAin syntax for selecting multiple variables? Say I\'d like to set a group of variables to equal 0.

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

精彩评论

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