jQuery/Bootstrap widget that makes a HTML table editable

<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

        <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    </head>

    <body>
         <table id="table" border="1">
             <tr>
                 <td>这里,点击后就可以编辑</td>
             </tr>
         </table>
    </body>
</html>

<script src="editable-table-master/mindmup-editabletable.js"></script>
<script src="editable-table-master/numeric-input-example.js"></script>
<script type="text/javascript">
// https://github.com/mindmup/editable-table
$(function () {
    $('#table').editableTableWidget({editor: $('<textarea>')});
});

</script>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容