(function () { var showMoreNChildren = function ($children, n) { //显示某jquery元素下的前n个隐藏的子元素 var $hiddenChildren = $children.filter(":hidden"); var cnt = $hiddenChildren.length; for (var i = 0; i < n && i < cnt ; i++) { $hiddenChildre…
jquery $(function() { //初始化 getData(0); var index = 1; $("#more").click(function() { getData(index) index = index + 1; }) var cur_page = 1; var total, total_page, page_size; //ajax交互 function getData(pageIndex) { $.ajax({ type: "POST",…