1
<table data-role="table" data-mode="columntoggle" class="ui-responsive ui-shadow" data-column-btn-text="">
<thead>
<tr>
<th data-priority="1" id="th0">1</th>
<th data-priority="1" id="th1">2</th>
<th data-priority="1" id="th2">3</th>
<th data-priority="1" id="th3">4</th>
<th data-priority="1" id="th4">5</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
</tbody>
</table>
我做了一个表使用jquery mobile.okay!然后我想隐藏一些列,所以我点击“列...”,现在我隐藏了列,但我如何使用localstorage存储我的操作,当我刷新这个页面时,并不是所有的列显示。我知道那里有'ui-checkbox-on'和'ui-checkbox-off'...。 THX!如何使用localstorage存储jquery mobile的复选框状态?
THx的家伙!但我的问题是存储复选框状态 – WUSO01
对不起。我用小提琴更新了答案。看看它是否有帮助:https://jsfiddle.net/dudu84/jxghvoqv/1/ – deChristo