I have an Array var cars = [2,3,..]
which holds a few integers.
(我有一个数组var cars = [2,3,..]
,其中包含一些整数。)
I've added a few values to the array, but I now need to send this array to a page via jQuery's .get
method. (我已经向数组添加了一些值,但是现在我需要通过jQuery的.get
方法将此数组发送到页面。)
How can I convert it to a JSON object for sending? (如何将其转换为JSON对象进行发送?)
ask by dotty translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…