【发布时间】:2018-10-13 15:24:04
【问题描述】:
我有一个对象数组
const parameters = [
{token: '78fe6df3f'},
{id: '12345'},
{ price: '0 - 9,000,000' },
{ 'area[]': 'Applehead Island' },
{ 'waterfront_type[]': 'Open Water' },
{ property_type_single: 'Single Family/Site Built' },
{ bedrooms: '0 - 5' },
{ baths: '0 - 5' },
{ sqft: '0 - 7500' }
];
我希望这个对象变成如下所示
https://www.example.com/properties.php?token=78fe6df3f&id=12345&price=$0%20-%20$3,480,000&area[]=Applehead%20Island&waterfront_type[]=Open%20Water&property_type_single=Single%20Family/Site%20Built&bedrooms=0%20-%205&baths=0%20-%205&sqft=0%20-%207500
请帮忙看看如何获得这个?
【问题讨论】:
-
这是什么语言的?这是 JavaScript 吗?
-
即对象数组。我需要使用它来获取调用。
-
但是这个数组是用什么语言定义的?
-
我不明白你的问题,恐怕。它是javascript
-
谢谢,这就是我要找的东西
标签: javascript arrays react-native serialization