分页条的制作

table内容

<table border="0" width=98% height=30px>
		<tr>
			<td align="center">
				<a id="firstPage"   href="javascript:void(0);" style="text-decoration:none;"> << </a> 
				<a id="prev" href="javascript:void(0);" style="text-decoration:none;"> < </a> 
					<span class="current-page"></span> / <span class="page-num"   ></span>  
				 
				<a id="next" href="javascript:void(0);" style="text-decoration:none;"> > </a> 
				<a id="lastPage" href="javascript:void(0);" style="text-decoration:none;"> >> </a>
			</td>
		</tr>
	</table>

js定位

  $(".current-page").text("1"); 
  $(".page-num").text(data.length); 
  $("#next").click(function() { 
	 alert("next")
});

 

posted @ 2016-09-08 13:16  wujixing909  阅读(267)  评论(0)    收藏  举报