mindmup-editabletable-编辑table的使用

本文介绍了一个基于jQuery的可编辑表格插件的使用方法,包括如何在HTML中设置基本表格结构,引入必要的JS文件,并通过jQuery初始化插件使表格具备编辑功能。此插件适用于快速构建具有数据编辑能力的网页应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

官方网站:http://mindmup.github.io/editable-table/

github下载地址:https://github.com/mindmup/editable-table

 

我的结构

简单测试html源码

<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>编辑</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width; initial-scale=1.0">
    </head>

    <body>
         <table id="table" border="1">
             <tr>
                 <td>fdsafdsafdasfds</td>
             </tr>
         </table>
    </body>
</html>
<script src="jquery-1.11.1.min.js"></script>
<script src="editable-table-master/mindmup-editabletable.js"></script>
<script src="editable-table-master/numeric-input-example.js"></script>
<script type="text/javascript">
$(function () {
    $('#table').editableTableWidget({editor: $('<textarea>')});
});

</script>

 

转载于:https://www.cnblogs.com/hwaggLee/p/5159437.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值