pagination의 afterPageText/displaymsg

1658 단어
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<head>
		<link rel="stylesheet" type="text/css" href="easyui.css">
		<link rel="stylesheet" type="text/css" href="pagination.css">
		<link rel="stylesheet" type="text/css" href="linkbutton.css">
		<link rel="stylesheet" type="text/css" href="icon.css">
		<script type="text/javascript" src="jquery.min.js"></script>
		<script type="text/javascript" src="jquery.easyui.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$("#pp").pagination({
					total:100,
					pageSize:20,
					pageNumber:2,
					pageList:[10,20,30,40],
					buttons:[{
						iconCls:'icon-save',
						handler:function(){
							alert("save")
						}
					},'-',{
						iconCls:'icon-add',
						handler:function(){
							alert("add")
						}
					}],
					layout:['list','sep','first','prev','next','last','sep',
							'manual','sep','links'],
					beforePageText:' ',
					afterPageText:'   {pages} ',
					displayMsg:' {from}-{to} , {total} '
				})
			})
		</script>
	</head>
	<body> 
		<div id="pp" style="border:1px solid #ccc; width:800px;"></div>
	</body>
</html>

JavaScript에서의 역할 찾기

좋은 웹페이지 즐겨찾기