我有2個網頁,頁面A和頁面B,頁面A有鏈接(鏈接1和鏈接2),頁面B有複選框(複選框1和複選框2)。當我點擊頁面A上的鏈接1時,它將更改爲頁面B,頁面B中的複選框1將被反過來檢查。主要用於HTML5和/或jQuery的將複選框狀態從一個頁面傳遞到另一個頁面
感謝
不忘展現例如編碼.. 這就是我試圖
頁A
<a href="pageb.html#check1" checked>Link to check Checkbox1</a>
<a href="pageb.html#check2" checked > Link to Check Checkbox2</a>
網頁B
<input type="checkbox" id="checkbox1">
<Label for="checkbox1>CheckBox1</label>
<input type="checkbox" id="checkbox2">
<Label for="checkbox2>CheckBox2</label>
你可以使用jQuery來閱讀和設置複選框,但它好像你只需要[Window.localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage ),它[非常支持](http://caniuse.com/#search=localstorage) –