我的问题是如何在PHP等JS中设置数组值?例如:在php中,我有一个名为Arr的数组,我使用
Arr[] = value
但我尝试在JS中做同样的事情,但显示错误
使用push命令
Arr.push(value)