第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

如何在數(shù)據(jù)行中添加按鈕

如何在數(shù)據(jù)行中添加按鈕

慕絲7291255 2023-02-22 19:05:37
如何在相同位置添加按鈕,但在右側(cè)(下圖)。我的按鈕和我想把它放在哪里我正在使用燒瓶(python)和 js。我自己找不到解決方案。我在 json 中獲取數(shù)據(jù)。html代碼表:!-- Build datatable --><div class="row-90">    <table class="table display" id="calEvents">        <thead>            <tr>                <th scope="col">ID</th>                <th scope="col">GROUP</th>                <th scope="col">WEEKDAY</th>                <th scope="col">DATE</th>                <th scope="col">TICKER</th>                <th scope="col">EVENT</th>                <th scope="col">READX</th>                <th scope="col">ACTION </th>            </tr>                  </thead>    </table>和java腳本。    $('#calEvents').DataTable( {    "processing": true,    "serverSide": false,    "order": [[ 3, "asc" ]],    "ajax": "/api/v1/calendar/get",    'columnDefs': [        {           targets: 2, render: function(data1){ return moment(data1).format('dddd')},        },         { targets: 3, render: function(data2){ return moment(data2).format('YYYY-MM-DD')}},    ] } );
查看完整描述

1 回答

?
慕村225694

TA貢獻(xiàn)1880條經(jīng)驗(yàn) 獲得超4個(gè)贊

我發(fā)現(xiàn)解決方案使用目標(biāo):-1,然后在數(shù)據(jù)表中最后添加按鈕。我的代碼

 targets: -1, defaultContent: '<button name="edit" class="btn btn-secondary" type="button">Edit</button>'
                 + '&nbsp <button name="delete" class="btn btn-danger" type="button">Delete</button>'



查看完整回答
反對(duì) 回復(fù) 2023-02-22
  • 1 回答
  • 0 關(guān)注
  • 151 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)