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")
});