日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

bootstraptable 日期控件_bootstrap table插件使用说明demo

發(fā)布時間:2023/12/15 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 bootstraptable 日期控件_bootstrap table插件使用说明demo 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

$(function(){

$('#table').bootstrapTable({

url:'manager/blog/list.json',

method:'get',

contentType:'application/json',

showColumns: true, //顯示隱藏列

showRefresh: true, ?//顯示刷新按鈕

toolbar:'#search_bar',

queryParams:queryPrams,

pagination: true,

pageSize: 10,

pageList:[10],

sidePagination: "server",

columns: [{

field: 'title',

title: '博客標題'

},{

field: 'authorName',

title: '作者'

},{

field:'copyright',

title:'版權(quán)',

formatter:function(value,row,index){

var cp=value;

if(value=='Reproduced'){

cp='轉(zhuǎn)載';

}else if(value=='Translation'){

cp='翻譯';

}else if(value=='Original'){

cp='原創(chuàng)';

}

return cp;

},

width:50

},{

field: 'autoAuditDate',

title: '自動審核日期'

},{

field: 'status',

title: '狀態(tài)',

formatter:function(value,row,index){

var status=value;

if(value=='Normal'){

status='正常';

}else if(value=='UnAudit'){

status='待審核';

}else if(value=='Refuse'){

status='駁回';

}else if(value=='AutoAudit'){

status='自審核';

}

return status;

},

width:60

},{

field: 'updateTime',

title: '更新時間',

formatter:function(value,row,index){

return $.timestamp2string(value,'yyyy-MM-dd hh:mm:ss');

},

width:170

},{

field: 'id',

title:'操作',

formatter:function(value,row,index){

var p='預(yù)?';

var a='審?';

var auto='定?';

var r='駁?';

return p+a+auto+r;

},

width:130

}]

})

//查詢事件綁定

$('#search_btn').click(function(){

$("#table").bootstrapTable('refresh');

});

$('#search_status').change(function(){

$("#table").bootstrapTable('refresh');

});

$('#search_copyright').change(function(){

$("#table").bootstrapTable('refresh');

});

$('#search_order').change(function(){

$("#table").bootstrapTable('refresh');

});

總結(jié)

以上是生活随笔為你收集整理的bootstraptable 日期控件_bootstrap table插件使用说明demo的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。