Skip to main content
 首页 » 编程设计

Javascript:拆分为多个变量

2025年05月04日25sxdcgaq8080

<分区>

Possible Duplicate:
Possible to assign to multiple variables from an array?

如果在 python 中我可以做到这一点

x = "Hi there and hello there" 
v1, v2, v3, v4, v5 = x.split(" ") 

但我不确定如何在 javascript 中做到这一点..