function showcontent(pageno){ var articleid = $("#articleid").val(); $.ajax({ type: "post", url: "/font/article/content/paging", data: {"pageno":pageno, "articleid":articleid}, success: function(data) { $("#content").html(data); $(".pageno").removeclass("hover"); $("#pageno"+pageno).addclass("hover"); } }); } $(function(){ showcontent(1); }) /** * 文章分页 */ function getarticlecontent(pageindex, maxpage) { try { $.ajax({ type:'post', datatype:'text', url:'/front/getarticlepagecontent', data:'pageindex='+pageindex+'&t='+new date(), success:function(data){ if(data != null){ $("#articlecontent").html(data); for(var i=0; i