最近在學習vue,找到一個項目,里面有個一段這樣的代碼let data = { latitude,
longitude,
offset, limit: '20', 'extras[]': 'activities',
keyword: '',
restaurant_category_id, 'restaurant_category_ids[]': restaurant_category_ids,
order_by, 'delivery_mode[]': delivery_mode + supportStr
};'extras[]'這樣的命名是什么依據?還是僅僅告訴我們這是一個數組
vue 中對象的鍵帶[],如{'extras[]': 'activities',}是什么原理?
慕田峪9158850
2019-01-30 16:20:09