以下のコードでは、選択した要素をすべて配列にプッシュします。 window.location.href
のようなjavascriptを使ってURLパラメータにプッシュすることができます。ページのリロード/リダイレクトなしでurlにparamsを追加できますか?ページをリロードしないでurlにparamsを追加(取得)しますか?
var keys = [];
keys.push({selected_element:object.key});
必要な構造は次のとおりです。/index.php?element[]=546454&element[]=156151&element[]=343141
http://stackoverflow.com/questions/824349/modify-the-url-ページを再ロードせずに http://stackoverflow.com/questions/3338642/updating-address-bar-with-new-url-without-hash-or-reloading-the-page – NullDev