如何从网址中删除哈希
$checkboxes = $('input[type=checkbox');
$checkboxes.change(function(){
window.location.hash= '?a=' + $checkboxes.filter(':checked').map(function(){
return this.value;
}).get().join(",");
});
<input type="checkbox" name="word" value="one">one<br>
<input type="checkbox" name="word" value="two">two<br>
答案 0 :(得分:0)