单表的增删改查(前端)

   
  <!DOCTYPE html>
  <html lang="en">
  <head>
  <meta charset="UTF-8">
  <title>Title</title>
  <link rel="stylesheet" href="layui/css/layui.css" media="all">
  <script src="layui/layui.js"></script>
  <script src="js/doctor.js"></script>
  </head>
  <body>
   
  <table class="layui-hide" id="typeTable" lay-filter="test"></table>
   
  <script type="text/html" id="barDemo">
  <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
  <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  </script>
   
  <div id="bookFrom" style="display:none;">
  <form class="layui-form" action="">
  <div class="layui-form-item" style="display:none;">
  <label class="layui-form-label">编号</label>
  <div class="layui-input-inline">
  <input type="text" name="did" placeholder="请输入编号"class="layui-input">
  </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label">订单商品 :</label>
  <div class="layui-input-inline">
  <input type="text" name="dname" placeholder="请输入订单商品 "class="layui-input">
  </div>
  </div>
  <div class="layui-form-item">
  <label class="layui-form-label">个数:</label>
  <div class="layui-input-inline">
  <input type="text" name="sex" placeholder="请输入个数"class="layui-input">
  </div>
  </div>
   
  <div class="layui-form-item" style="display:none;">
  <div class="layui-input-block">
  <button class="layui-btn" lay-submit lay-filter="formDemo" id="submitBtn">立即提交</button>
  <button type="reset" class="layui-btn layui-btn-primary" id="resBtn">重置</button>
  </div>
  </div>
  </form>
  </div>
  </body>
  </html>
posted @ 2020-12-31 11:31  歪歪//  阅读(167)  评论(0编辑  收藏  举报