Code Monkey home page Code Monkey logo

bootstrap-page's Introduction

bootstrap-page

基于jquery的bootstrap分页插件

用法

#html代码

<table class="table table-bordered table-hover table-striped" id="table1"></table>

#js代码

var option={
table:"table1",
head:{id:"ID",meetingName:"年会名称",meetingTag:"标签",createTime:"创建时间",convertFile:"转换进度",fileCount:"预览地址","null":"操作"},
url:app.base+'/listmeeting',
column:{
	3:function(data){
		return new Date(data.createTime).format("yyyy-MM-dd hh:mm:ss");
	},
	4:function(data){
		return data.convertFile+"/"+data.fileCount;
	},
	5:function(data){
		if(data.convertFile==data.fileCount){
			var str="";
			for(var i=1;i<=data.fileCount;i++){
				var url=app.full_base+"/view?tag="+data.meetingTag+"&uid=comm&index="+i;
				str+="<a href="+url+" target=\"_blank\">"+url+"</a><br/>";
				
			}
			return str;
		}else{
			return "转换中...";
		}
	},
	6:function(data){
			var url="/updfileview?tag="+data.meetingTag;
			return "<a href=\"javascript:app.loadpage('"+url+"')\">更新文件</a>";
	}
},
param:{key:"keyword",group_id:"group_id"}
};
var table1=new $.page(option);
	function search(){
	table1.searchData();
}
function refresh(){
	table1.getData();
}

效果图

还有问题? 发邮件给我 [email protected]

bootstrap-page's People

Contributors

badman200 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.