相关疑难解决方法(0)

如何使用JQuery将HTML表转换为列表?

我将如何转换表格

<table>
    <tr>
        <td>Name</td>
        <td>Price</td>
    </tr>
    <tr>
        <td>Name</td>
        <td>Price</td>
    </tr>  
</table>
Run Code Online (Sandbox Code Playgroud)

到jQuery的段落列表

<ul>
    <li>
        <p>Name</p>
        <p>Price</p>
    </li>
    <li>
        <p>Name</p>
        <p>Price</p>
    </li>  
</ul>

<p><a id="products-show-list">Toggle list view</a></p>

<script type="text/javascript">
    $("#products-show-list").click(function(){...});
</script>
Run Code Online (Sandbox Code Playgroud)

javascript jquery listview html-table list

2
推荐指数
1
解决办法
6493
查看次数

标签 统计

html-table ×1

javascript ×1

jquery ×1

list ×1

listview ×1