最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

基于layui數(shù)據(jù)表格以及傳數(shù)據(jù)的方式

 更新時(shí)間:2018年08月19日 09:48:34   作者:*眉間緣*  
今天小編就為大家分享一篇基于layui數(shù)據(jù)表格以及傳數(shù)據(jù)的方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧

如下所示:

數(shù)據(jù)表格一:

<div style="margin:0px; background-color: white; margin:0 10px;">
    <blockquote class="layui-elem-quote">
    <div class="layui-btn-group demoTable">
      <button class="layui-btn" data-type="getCheckData">下載</button></div>
      <form class="layui-form" style="float:right;">
        <div class="layui-form-item" style="margin:0;">
          <label class="layui-form-label">名稱</label>
          <div class="layui-input-inline">
            <input type="text" name="zname" placeholder="輸入作業(yè)名稱" autocomplete="off" class="layui-input">
          </div>
          <div class="layui-form-mid layui-word-aux" style="padding:0;">
            <button id="cha" lay-filter="search" class="layui-btn" lay-submit><i class="fa fa-search" aria-hidden="true"></i> 查詢</button>
          </div>
        </div>
      </form>
    </blockquote>
  </div>
<table class="layui-table" lay-data="{url:'../task/selectTask.do', page:true, id:'test2'}">
 <thead>
  <tr>
   <th lay-data="{checkbox:true,fixed:true}"></th>
   <th lay-data="{field:'id', width:60, sort: true}">ID</th>
   <th lay-data="{field:'cid', width:150, sort: true}">課程id</th>
   <th lay-data="{field:'tid', width:150, sort: true}">教師id</th>
   <th lay-data="{field:'zname', width:150, sort: true}">作業(yè)名稱</th>
   <th lay-data="{field:'ztime', width:150, sort: true,toolbar: '#timeTpl'}">提交時(shí)間</th>
   <th lay-data="{field:'zcontext', width:150, sort: true}">作業(yè)內(nèi)容</th>
   <th lay-data="{field:'zremarks', width:150, sort: true}">備注</th>
   <th lay-data="{fixed: 'right', width:100, align:'center', toolbar: '#barDemo1'}"></th>
  </tr>
 </thead>
</table>

數(shù)據(jù)傳輸方式

<script type="text/html" id="barDemo1">
 <a href="/?zname={{d.zname}}" rel="external nofollow" class="layui-btn layui-btn-mini" lay-event="edit">下載</a>
</script>

將參數(shù)綁定傳入后臺(tái)

jo.put("code", 0);
    jo.put("msg",":");
    jo.put("count", 1000);
    jo.put("data", list);

后臺(tái)數(shù)據(jù)傳入前臺(tái)的方式

數(shù)據(jù)表格二:

<div class="admin-main">

      <blockquote class="layui-elem-quote">
        <a href="javascript:;" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small" id="add">
          <i class="layui-icon">&#xe608;</i> 添加信息
        </a>
        <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small" id="import">
          <i class="layui-icon">&#xe608;</i> 導(dǎo)入信息
        </a>
        <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small">
          <i class="fa fa-shopping-cart" aria-hidden="true"></i> 導(dǎo)出信息
        </a>
        <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small" id="getSelected">
          <i class="fa fa-shopping-cart" aria-hidden="true"></i> 獲取全選信息
        </a>
        <a href="javascript:;" rel="external nofollow" rel="external nofollow" class="layui-btn layui-btn-small" id="search">
          <i class="layui-icon">&#xe615;</i> 搜索
        </a>
      </blockquote>
      <fieldset class="layui-elem-field">
        <legend>數(shù)據(jù)列表</legend>
        <div class="layui-field-box layui-form">
          <table class="layui-table admin-table">
            <thead>
              <tr>
                <th style="width: 30px;"><input type="checkbox" lay-filter="allselector" lay-skin="primary"></th>
                <th>編號(hào)</th>
                <th>用戶名</th>
                <th>真實(shí)姓名</th>
                <th>性別</th>
                <th>電話</th>
                <th>郵箱</th>
                <th>公司</th>
                <th>職位</th>
                <th>政治面貌</th>
                <th>培訓(xùn)狀態(tài)</th>
                <th>賬號(hào)狀態(tài)</th>
                <th>角色</th>
                <th>創(chuàng)建時(shí)間</th>
                <th>備注</th>
            
              </tr>
            </thead>
            <tbody id="content">
            </tbody>
          </table>
        </div>
      </fieldset>
      <div class="admin-table-page">
        <div id="paged" class="page">
        </div>
      </div>
    </div>

以上這篇基于layui數(shù)據(jù)表格以及傳數(shù)據(jù)的方式就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

  • vue3+Pinia+TypeScript?實(shí)現(xiàn)封裝輪播圖組件

    vue3+Pinia+TypeScript?實(shí)現(xiàn)封裝輪播圖組件

    這篇文章主要介紹了vue3+Pinia+TypeScript?實(shí)現(xiàn)封裝輪播圖組件,文章圍繞主題展開詳細(xì)的內(nèi)容介紹,具有一定的參考價(jià)值,需要的朋友可以參考一下
    2022-07-07
  • 微信小程序常用賦值方法小結(jié)

    微信小程序常用賦值方法小結(jié)

    這篇文章主要介紹了微信小程序常用賦值方法,結(jié)合實(shí)例形式總結(jié)了微信小程序局部變量、全局變量及data對(duì)象屬性賦值相關(guān)操作技巧,需要的朋友可以參考下
    2019-04-04
  • require導(dǎo)入module.exports 或 exports導(dǎo)出的使用方法

    require導(dǎo)入module.exports 或 exports導(dǎo)出的使用方法

    module.exports用于導(dǎo)出整個(gè)模塊的內(nèi)容,可以通過賦值給 module.exports 導(dǎo)出一個(gè)對(duì)象、函數(shù)或值,導(dǎo)出的內(nèi)容可以被其他模塊通過require 導(dǎo)入,本文給大家介紹require導(dǎo)入module.exports 或 exports導(dǎo)出的使用,感興趣的朋友一起看看吧
    2023-11-11
  • 利用JS重寫Cognos右鍵菜單的實(shí)現(xiàn)代碼

    利用JS重寫Cognos右鍵菜單的實(shí)現(xiàn)代碼

    我寫了一個(gè)利用JS禁用Cognos右鍵菜單,下面的JS可以實(shí)現(xiàn)重寫Cognos的右鍵菜單。只要將下面的代碼拷到一個(gè)HTML項(xiàng)里即可。
    2010-04-04
  • js中eval()函數(shù)和trim()去掉字符串左右空格應(yīng)用

    js中eval()函數(shù)和trim()去掉字符串左右空格應(yīng)用

    對(duì)于js中eval()函數(shù)的理解和寫一個(gè)函數(shù)trim()去掉字符串左右空格;對(duì)于js中eval()函數(shù)的理解是本人心得不一定正確,感興趣的朋友參考下,或許對(duì)你學(xué)習(xí)eval()函數(shù)有所幫助
    2013-02-02
  • 重新理解JavaScript的六種繼承方式

    重新理解JavaScript的六種繼承方式

    通過本文帶領(lǐng)大家一起重新理解JavaScript的六種繼承方式,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下
    2017-03-03
  • JavaScript實(shí)現(xiàn)谷歌瀏覽器插件開發(fā)的方法詳解

    JavaScript實(shí)現(xiàn)谷歌瀏覽器插件開發(fā)的方法詳解

    對(duì)于瀏覽器插件相信大家都不陌生,誰的瀏覽器不裝幾個(gè)好用的插件呢,更是有油猴這個(gè)強(qiáng)大的神器。所以本文就來用JavaScript開發(fā)一個(gè)谷歌瀏覽器插件,感興趣的小伙伴可以了解一下
    2022-11-11
  • 禁止JS運(yùn)行的代碼

    禁止JS運(yùn)行的代碼

    如果我們要讓頁面上的javascript不運(yùn)行,方法最簡(jiǎn)單的就是使用noscript標(biāo)簽,經(jīng)常被用來屏蔽那些免費(fèi)空間要加上的JS。
    2011-01-01
  • Webpack如何引入bootstrap的方法

    Webpack如何引入bootstrap的方法

    本篇文章主要介紹了Webpack如何引入bootstrap的方法,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-06-06
  • js日期、星座的級(jí)聯(lián)顯示代碼

    js日期、星座的級(jí)聯(lián)顯示代碼

    本篇文章主要是對(duì)js日期、星座的級(jí)聯(lián)顯示代碼進(jìn)行了介紹,需要的朋友可以過來參考下,希望對(duì)大家有所幫助
    2014-01-01

最新評(píng)論

凤冈县| 宜宾县| 胶南市| 安图县| 登封市| 罗甸县| 龙门县| 汶川县| 盈江县| 依兰县| 崇礼县| 曲松县| 鹤山市| 安吉县| 车险| 关岭| 仁化县| 伊金霍洛旗| 玉树县| 大理市| 正宁县| 广州市| 高尔夫| 濮阳县| 临泽县| 邛崃市| 灵石县| 顺昌县| 瓮安县| 乌什县| 河曲县| 尉氏县| 武穴市| 满城县| 农安县| 重庆市| 图片| 葫芦岛市| 徐闻县| 荣昌县| 文昌市|