<script src='\/js\/jquery.js'><\/script>\r\n<script src=\"\/js\/jquery-ias.min.js\"><\/script><\/code><\/pre>\n\u4e8c\u3001\u63a5\u7740\u4e0a\u9762\u7684js\uff0c\u5728\u9875\u9762\u4e2d\u5199\u5165\u63d2\u4ef6\u53c2\u6570<\/p>\n
<script type=\"text\/javascript\">\r\nvar ias = $.ias({\r\n container: \".listbox<\/span>\", \/\/\u5305\u542b\u6240\u6709\u6587\u7ae0\u7684\u5143\u7d20\r\n item: \".item<\/span>\", \/\/\u6587\u7ae0\u5143\u7d20\r\n pagination: \".pagelist<\/span>\", \/\/\u5206\u9875\u5143\u7d20\r\n next: \".pagelist a.nextpage<\/span>\", \/\/\u4e0b\u4e00\u9875\u5143\u7d20\r\n});\r\nias.extension(new IASSpinnerExtension({\r\n src: \"\/img\/load.gif\", \/\/\u6b64\u9009\u9879\u4e3a\u52a0\u8f7d\u65f6\u7f13\u51b2\u56fe\u7247\r\n html: '<p style=\"text-align: center;\"><img src=\"{src}\"\/><\/p>'\r\n}));\r\nias.extension(new IASTriggerExtension({\r\n text: '\u70b9\u51fb\u52a0\u8f7d\u66f4\u591a', \/\/\u6b64\u9009\u9879\u4e3a\u9700\u8981\u70b9\u51fb\u65f6\u7684\u6587\u5b57\r\n html: '<p style=\"text-align: center; cursor: pointer;\"><a>{text}<\/a><\/p>',\r\n offset: !1, \/\/\u8bbe\u7f6e\u6b64\u9879\uff0c\u5982 offset:2 \u9875\u4e4b\u540e\u9700\u8981\u624b\u52a8\u70b9\u51fb\u624d\u80fd\u52a0\u8f7d\uff0coffset:!1 \u5219\u4e00\u76f4\u4e3a\u65e0\u9650\u52a0\u8f7d\r\n}));\r\nias.extension(new IASNoneLeftExtension({\r\n text: '\u522b\u518d\u62c9\u5566\uff0c\u6211\u4eec\u662f\u6709\u5e95\u7ebf\u7684\uff01', \/\/ \u52a0\u8f7d\u5b8c\u6210\u65f6\u7684\u63d0\u793a\r\n html: '<p style=\"text-align: center; cursor: pointer;\"><a>{text}<\/a><\/p>',\r\n}));\r\n<\/script><\/code><\/pre>\n\u4e09\u3001\u5217\u8868\u6a21\u677f\u8c03\u7528\u4ee3\u7801\u4ee3\u7801\uff0c\u6b64\u4ee3\u7801\u662f\u9ed8\u8ba4\u6a21\u677f\u7684\u4ee3\u7801\uff0c\u53ef\u6839\u636e\u81ea\u5df1\u7684\u4fee\u6539\u8c03\u7528\u53c2\u6570\uff0c\u6ce8\u610f\u6807\u8272\u7684\u5730\u65b9\u8981\u4e0e\u7b2c2\u6b65\u6807\u8272\u7684\u5730\u65b9\u7edf\u4e00<\/p>\n
<div class=\"listbox<\/span>\">\r\n<ul class=\"e2\">\r\n{dede:list pagesize='10'}\r\n<li class=\"item<\/span>\"><a href=\"[field:arcurl\/]\" class=\"title\">[field:title\/]<\/a><\/li>\r\n{\/dede:list}\r\n<\/ul>\r\n<\/div>\r\n<ul class=\"pagelist<\/span>\">\r\n{dede:pagelist listitem=\"next\" listsize=\"1\" runphp=yes}\r\n@me = preg_replace('\/<a\\shref=([\\'\"]?).+?\\1\/', '$0 class=\"nextpage<\/span>\"', @me);\r\n{\/dede:pagelist}\r\n<\/ul><\/code><\/pre>\n\u8981\u5728\u52a0\u8f7d\u66f4\u591a\u540e\u663e\u793a\u7684\u6587\u7ae0\u4e2d\u652f\u6301\u56fe\u7247\u5ef6\u8fdf\u52a0\u8f7d\uff0c\u9700\u8981\u6dfb\u52a0\u6b64\u56fe\u7247\u5ef6\u8fdf\u52a0\u8f7d\u529f\u80fd\uff0c\u6ca1\u6709\u5ef6\u8fdf\u52a0\u8f7d\u56fe\u7247\u7684\u7ae5\u5b66\u4e0d\u9700\u8981\u7406\u4f1a\u3002<\/p>\n
ias.on('rendered', function(items) {\r\n $(\".content img\").lazyload({\r\n effect: \"fadeIn\",\r\n failure_limit : 10\r\n }); \/\/\u8fd9\u91cc\u662f\u4f60\u8c03\u7528Lazyload\u7684\u4ee3\u7801\r\n}) <\/code><\/pre>\n <\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
\u7ec7\u68a6DEDECMS\"\u70b9\u51fb\u52a0\u8f7d\u66f4\u591a\"\"\u65e0\u9650\u4e0b\u62c9\"Infinite Ajax Scroll\u63d2\u4ef6,\u652f\u6301\u52a8\u9759\u6001,\u652f\u6301\u56fe […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[734,737,732,735,736,733],"class_list":["post-2173","post","type-post","status-publish","format-standard","hentry","category-web","tag-infinite-ajax-scroll","tag-737","tag-732","tag-735","tag-736","tag-733"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=2173"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2173\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}