{"id":424535,"date":"2021-04-04T17:05:04","date_gmt":"2021-04-04T09:05:04","guid":{"rendered":"http:\/\/4563.org\/?p=424535"},"modified":"2021-04-04T17:05:04","modified_gmt":"2021-04-04T09:05:04","slug":"%e8%af%b7%e6%95%99%e5%89%8d%e7%ab%af%e5%a4%a7%e5%a4%a7%e4%bb%ac%e4%b8%80%e4%b8%aa%e5%b0%8f%e7%a8%8b%e5%ba%8f%e7%9a%84%e6%95%88%e6%9e%9c%e5%ae%9e%e7%8e%b0%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=424535","title":{"rendered":"\u8bf7\u6559\u524d\u7aef\u5927\u5927\u4eec\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u7684\u6548\u679c\u5b9e\u73b0\u65b9\u6cd5"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u524d\u7aef\u5927\u5927\u4eec\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u7684\u6548\u679c\u5b9e\u73b0\u65b9\u6cd5               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cyy564 <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>http:\/\/static.cangyuanyuan.com\/ezgif.com-gif-maker.gif<\/p>\n<p>\u76f4\u63a5\u4e0a\u56fe\uff0c\u770b\u51c6\u7f51\u7684\u5c0f\u7a0b\u5e8f<\/p>\n<p>\u5438\u9876\u53ef\u4ee5\u7528 createIntersectionObserver \u6765\u5b9e\u73b0<\/p>\n<p>\u4e0b\u6ed1\u8fc7\u7a0b\u4e2d logo \u548c\u641c\u7d22\u6846\u5982\u4f55\u5b9e\u73b0\u5982\u6b64\u5e73\u6ed1\u7684\u53d8\u5316\u6548\u679c<\/p>\n<p>\u7528\u4e86 onPageScroll\uff0c\u6548\u679c\u5f88\u5dee<\/p>\n<p>\u6709\u6728\u6709\u66f4\u597d\u7684\u65b9\u6cd5<\/p>\n<p>\u8fd8\u6709\u4e00\u70b9\uff0c\u6211\u7528\u7684 taro\uff0c\u6ca1\u7528\u539f\u751f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>10<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5632104\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : heasy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/developers.weixin.qq.com\/miniprogram\/dev\/api\/ui\/animation\/Animation.scale.html                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5632105\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cyy564 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @heasy \u4ed6\u90a3\u4e2a\u662f\u6839\u636e\u9ad8\u5ea6\u8fdb\u884c\u7f29\u653e\uff0c\u6211\u60f3\u77e5\u9053\u5982\u4f55\u76d1\u542c\u7528\u6237\u4e0b\u6ed1\u5230\u4e00\u5b9a\u7684\u9ad8\u5ea6\uff0c\u7136\u540e\u518d\u8fdb\u884c\u52a8\u753b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5632106\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ibegyourpardon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5c0f\u7a0b\u5e8f\u7684 onPageScroll \u6211\u6ca1\u7528\u8fc7\uff0c\u76ee\u6d4b\u548c\u6d4f\u89c8\u5668\u73af\u5883\u4e0b\u7528\u6cd5\u5dee\u4e0d\u591a\u3002<\/p>\n<p>\u4f7f\u7528 onPageScroll()\u65b9\u6cd5\uff0c\u8be5\u51fd\u6570\u6709\u4e00\u4e2a\u53c2\u6570 e\uff0c\u901a\u8fc7 e.scrollTop \u53ef\u4ee5\u8bbf\u95ee\u4f60\u6240\u6eda\u52a8\u7684\u9ad8\u5ea6\u3002<\/p>\n<p>onPageScroll: function(e) {<br \/> console.log(e.scrollTop)<br \/>}<\/p>\n<p>\u4f60\u53ef\u4ee5\u8ba1\u7b97 e.scrollTop \u6765\u51b3\u5b9a\u8981\u4e0d\u8981\u5f00\u59cb\u6267\u884c\u52a8\u753b\u3002<br \/>\u4f46\u5e94\u8be5\u4e0d\u80fd\u5728\u91cc\u9762\u7528\u4e0d\u505c\u7684\u53bb setData \u7684\u65b9\u6cd5\u6765\u505a\uff0c\u4f1a\u6709\u4e25\u91cd\u7684\u6027\u80fd\u95ee\u9898\u3002\u5b83\u66f4\u5e94\u8be5\u662f\u4e00\u4e2a\u89e6\u53d1\u5f00\u5173\uff0c\u5f00\u5173\u6253\u5f00\u540e\u53bb\u8c03\u4e00\u6b21\u52a8\u753b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5632107\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : misdake <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/developers.weixin.qq.com\/miniprogram\/dev\/framework\/view\/animation.html#%E6%BB%9A%E5%8A%A8%E9%A9%B1%E5%8A%A8%E7%9A%84%E5%8A%A8%E7%94%BB                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5632108\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qiayue <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @misdake \u5c45\u7136\u771f\u6709\u8fd9\u63a5\u53e3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5632109\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : loveToMy1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5360\u4e2a \u6211\u4e5f\u5728\u627e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5632110\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : journalistFromHK <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             animate keyframes \u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5632111\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cyy564 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @misdake \u8c22\u8c22\uff0c\u770b\u4e86\u4e00\u4e0b\u6837\u4f8b\uff0c\u5c31\u662f\u8fd9\u79cd\u6548\u679c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5632112\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : play78 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             six                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5632113\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coreki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u521a\u597d\u6211\u6700\u8fd1\u4e5f\u5728\u505a\u8fd9\u4e2a\u6548\u679c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u524d\u7aef\u5927\u5927\u4eec\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u7684\u6548\u679c\u5b9e\u73b0&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/424535"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=424535"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/424535\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=424535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=424535"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=424535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}