Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
选择图标后,我想删除当前图标类并添加删除图标
http://jsfiddle.net/4Bgx7/383/
你需要 do removeClass() 而不是使用addClass()will do 来完成这个任务。
removeClass
addClass()
此处 removeClass 删除您当前的类并 addClass 添加一个应用删除图标的类。
你可以设置 data-icon=delete
<li data-icon="delete"><a href="#">Delete</a></li>
我目前有一个我需要的表结构。我有类似以下的东西
Field1 Field3 Field5 Field2 Field4 Field6
请注意,Field1,Field2 在 a 中<td>,Field3,Field4 在 a<td>中,Field5,Field6 在 a 中<td&
<td>
<td&