首頁 服務 產品 文檔 關于

layui table dropmenu使用

在table的toolbar


在table.render

done: function(res, curr, count) {
? ? ? ? ? ? ? ? dropdown.render({
? ? ? ? ? ? ? ? ? ? elem: '#toolBar1' //可綁定在任意元素中,此處以上述按鈕為例
? ? ? ? ? ? ? ? ? ? , data: [{
? ? ? ? ? ? ? ? ? ? ? ? ? ? title: '設置審批部門'
? ? ? ? ? ? ? ? ? ? ? ? ? ? , id: 101
? ? ? ? ? ? ? ? ? ? ? ? , href: 'javascript:;' //開啟超鏈接
? ? ? ? ? ? ? ? ? ? ? ? },? ? ? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? title: '設置來源單位'
? ? ? ? ? ? ? ? ? ? ? ? , id: 100
? ? ? ? ? ? ? ? ? ? ? ? , href: 'javascript:;'
? ? ? ? ? ? ? ? ? ? ? ? }, {
? ? ? ? ? ? ? ? ? ? ? ? title: '設置抄送單位'
? ? ? ? ? ? ? ? ? ? ? ? , id: 101
? ? ? ? ? ? ? ? ? ? ? ? , href: 'javascript:;'
? ? ? ? ? ? ? ? ? ? }]
? ? ? ? ? ? ? ? ? ? , id: 'toolBar1'
? ? ? ? ? ? ? ? ? ? //菜單被點擊的事件
? ? ? ? ? ? ? ? ? ? , click: function (obj) {
? ? ? ? ? ? ? ? ? ? ? ? console.log(obj.att);
? ? ? ? ? ? ? ? ? ? ? ? layer.msg('回調返回的參數已顯示再控制臺');
? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? });
? ? ? ? ? ? },


并記得引入dropdown

layui.use(['form', 'table','dropdown']

a级片在线观看免费,欧美精品片在线观看网站,免费观看a级毛片在线播放,成人午夜兔费观看网站