-
Notifications
You must be signed in to change notification settings - Fork 10
/
db.json
1 lines (1 loc) · 47.1 KB
/
db.json
1
{"meta":{"version":1,"warehouse":"2.2.0"},"models":{"Asset":[{"_id":"themes/huno/source/css/archive.css","path":"css/archive.css","modified":0,"renderable":1},{"_id":"themes/huno/source/css/china-social-icon.css","path":"css/china-social-icon.css","modified":0,"renderable":1},{"_id":"themes/huno/source/css/animate.css","path":"css/animate.css","modified":0,"renderable":1},{"_id":"themes/huno/source/css/highlight.styl","path":"css/highlight.styl","modified":0,"renderable":1},{"_id":"themes/huno/source/css/uno.css","path":"css/uno.css","modified":0,"renderable":1},{"_id":"themes/huno/source/images/totop.png","path":"images/totop.png","modified":0,"renderable":1},{"_id":"themes/huno/source/js/awesome-toc.min.js","path":"js/awesome-toc.min.js","modified":0,"renderable":1},{"_id":"themes/huno/source/js/jquery.githubRepoWidget.min.js","path":"js/jquery.githubRepoWidget.min.js","modified":0,"renderable":1},{"_id":"themes/huno/source/js/main.js","path":"js/main.js","modified":0,"renderable":1},{"_id":"themes/huno/source/js/scale.fix.js","path":"js/scale.fix.js","modified":0,"renderable":1},{"_id":"themes/huno/source/js/jquery.min.js","path":"js/jquery.min.js","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/china-social/china-social.eot","path":"fonts/china-social/china-social.eot","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/china-social/china-social.svg","path":"fonts/china-social/china-social.svg","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/china-social/china-social.ttf","path":"fonts/china-social/china-social.ttf","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/china-social/china-social.woff","path":"fonts/china-social/china-social.woff","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/china-social/readme.html","path":"fonts/china-social/readme.html","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.css","path":"fonts/foundation-icons/foundation-icons.css","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.eot","path":"fonts/foundation-icons/foundation-icons.eot","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.woff","path":"fonts/foundation-icons/foundation-icons.woff","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.ttf","path":"fonts/foundation-icons/foundation-icons.ttf","modified":0,"renderable":1},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.svg","path":"fonts/foundation-icons/foundation-icons.svg","modified":0,"renderable":1},{"_id":"themes/huno/source/images/background-cover.jpg","path":"images/background-cover.jpg","modified":0,"renderable":1}],"Cache":[{"_id":"source/.DS_Store","hash":"21dc0e34d6eeaa8b1fed534d2a6b8ee666af6151","modified":1489232309000},{"_id":"themes/huno/.DS_Store","hash":"d57384ebd3477841adbdb362b0559c7c0a79168c","modified":1489229731000},{"_id":"themes/huno/README.en.md","hash":"0878f26ed7fd9d4cbfeb0ddab5e1e14c93be793a","modified":1489227145000},{"_id":"themes/huno/README.md","hash":"8940f32e649ba30b684f347c04826a066fa9f399","modified":1489227145000},{"_id":"themes/huno/_config.yml","hash":"729087710d2081a221d007d2c8f0d64990eac926","modified":1489231982000},{"_id":"source/example/index.md","hash":"503a1b364067802e0c014b661162c224cc2da77c","modified":1489229040000},{"_id":"source/start/index.md","hash":"226cb77c32c619376796c5c6c9731089b19e07f2","modified":1489228965000},{"_id":"source/_posts/events.md","hash":"6a6f1de51f0460474be5674ae87a2e0b1edb737e","modified":1489232417000},{"_id":"source/_posts/install.md","hash":"635a2e14e8f62c546a8f4906db4f1a6e65a48b82","modified":1489232408000},{"_id":"source/_posts/.DS_Store","hash":"1193e02fc9208384ebafab35a4e135d9a9c31965","modified":1489232309000},{"_id":"source/_posts/options.md","hash":"26bee2d16a701f01c07d36c0b04bafb3a7fbf27d","modified":1489232421000},{"_id":"source/_posts/trigger.md","hash":"755f990f36d71fbc86e2e7ecbdf92c3fbd9ded70","modified":1489232427000},{"_id":"themes/huno/.git/HEAD","hash":"acbaef275e46a7f14c1ef456fff2c8bbe8c84724","modified":1489227145000},{"_id":"themes/huno/.git/config","hash":"6427fc07164643811f4ecb285662a352db74d4b2","modified":1489227145000},{"_id":"themes/huno/.git/description","hash":"9635f1b7e12c045212819dd934d809ef07efa2f4","modified":1489227136000},{"_id":"themes/huno/.git/index","hash":"f35448f95ecba0ae28bbe94496d334a86d0fa199","modified":1489231020000},{"_id":"themes/huno/.git/packed-refs","hash":"8647383fb9ce21a528fa4a1338a8f150043e6e13","modified":1489227145000},{"_id":"themes/huno/languages/default.yml","hash":"bddd7fd79412849a52b9a36aae36af111b2db619","modified":1489227145000},{"_id":"themes/huno/languages/zh-CN.yml","hash":"fc0fcc3819c03baeecf2aa51cec08257973288cf","modified":1489227145000},{"_id":"themes/huno/languages/zh-TW.yml","hash":"d865666c14c58c70738d9aef04ae14e38e750c14","modified":1489227145000},{"_id":"themes/huno/layout/archive.ejs","hash":"23aff325ab97b2c7dde6e757fa3add5226a88b4f","modified":1489227145000},{"_id":"themes/huno/layout/category.ejs","hash":"2b412d1b52b9da8ad19f6a66b1c18ab0b7546214","modified":1489227145000},{"_id":"themes/huno/layout/index.ejs","hash":"12c817a875f353c03d8795c2a7b653e4da22c17e","modified":1489227145000},{"_id":"themes/huno/layout/layout.ejs","hash":"4977031185ae4687c0ba0ec1f7aec5050b203726","modified":1489227145000},{"_id":"themes/huno/layout/page-archive.ejs","hash":"ce5523d829c0fdd6a79984fcf15e33572a220df9","modified":1489227145000},{"_id":"themes/huno/layout/page.ejs","hash":"70a50ecf7e1aa9c658212f1e77783dcb287d56a6","modified":1489227145000},{"_id":"themes/huno/layout/post.ejs","hash":"86c9d13e8abdcff4d368e34595e2d2f11f37e9d4","modified":1489227145000},{"_id":"themes/huno/layout/tag.ejs","hash":"fefa03bed577cae2e1aac19bd5d30c5034f453a0","modified":1489227145000},{"_id":"themes/huno/source/.DS_Store","hash":"5cab9557b002949fa3aeb1f60bd2575539e220c2","modified":1489229731000},{"_id":"themes/huno/cs-icon.png","hash":"4ba5bfbacb1a533f3561112406c305e9510aa8dd","modified":1489227145000},{"_id":"themes/huno/layout/_partials/list-posts.ejs","hash":"da39a3ee5e6b4b0d3255bfef95601890afd80709","modified":1489227145000},{"_id":"themes/huno/layout/_scripts/site-analytics.ejs","hash":"da39a3ee5e6b4b0d3255bfef95601890afd80709","modified":1489227145000},{"_id":"themes/huno/.git/hooks/applypatch-msg.sample","hash":"4de88eb95a5e93fd27e78b5fb3b5231a8d8917dd","modified":1489227136000},{"_id":"themes/huno/.git/hooks/commit-msg.sample","hash":"ee1ed5aad98a435f2020b6de35c173b75d9affac","modified":1489227136000},{"_id":"themes/huno/.git/hooks/pre-applypatch.sample","hash":"f208287c1a92525de9f5462e905a9d31de1e2d75","modified":1489227136000},{"_id":"themes/huno/.git/hooks/post-update.sample","hash":"b614c2f63da7dca9f1db2e7ade61ef30448fc96c","modified":1489227136000},{"_id":"themes/huno/.git/hooks/pre-commit.sample","hash":"36aed8976dcc08b5076844f0ec645b18bc37758f","modified":1489227136000},{"_id":"themes/huno/.git/hooks/pre-push.sample","hash":"5c8518bfd1d1d3d2c1a7194994c0a16d8a313a41","modified":1489227136000},{"_id":"themes/huno/.git/hooks/pre-rebase.sample","hash":"5885a56ab4fca8075a05a562d005e922cde9853b","modified":1489227136000},{"_id":"themes/huno/.git/hooks/pre-receive.sample","hash":"705a17d259e7896f0082fe2e9f2c0c3b127be5ac","modified":1489227136000},{"_id":"themes/huno/.git/hooks/prepare-commit-msg.sample","hash":"2b6275eda365cad50d167fe3a387c9bc9fedd54f","modified":1489227136000},{"_id":"themes/huno/.git/hooks/update.sample","hash":"e729cd61b27c128951d139de8e7c63d1a3758dde","modified":1489227136000},{"_id":"themes/huno/.git/info/exclude","hash":"c879df015d97615050afa7b9641e3352a1e701ac","modified":1489227136000},{"_id":"themes/huno/.git/logs/HEAD","hash":"59ed1c89891c64a513547e40b9a30a19bc4c9288","modified":1489227145000},{"_id":"themes/huno/layout/_partials/archive.ejs","hash":"8c234644e08dd8ed55069c67a72de5275e87752f","modified":1489229517000},{"_id":"themes/huno/layout/_partials/article.ejs","hash":"d70f67763511c44d6e7894ac1c03bac07c046b5f","modified":1489230293000},{"_id":"themes/huno/layout/_partials/disqus.ejs","hash":"30c043cc683c78f345a658cf64b37e55e6521685","modified":1489227145000},{"_id":"themes/huno/layout/_partials/duoshuo.ejs","hash":"7cfe423c088a3bf0565e27a1c17d1b99a260786b","modified":1489227145000},{"_id":"themes/huno/layout/_partials/footer.ejs","hash":"59070ce06159cfd45b13c9499b1e4f0a272d1019","modified":1489227145000},{"_id":"themes/huno/layout/_partials/pagination.ejs","hash":"1240c019aa4df269777c54c0d2124b534ec1f380","modified":1489227145000},{"_id":"themes/huno/layout/_partials/side-panel.ejs","hash":"6cfa624bb2c584be80794048aa7ffce953833901","modified":1489231392000},{"_id":"themes/huno/layout/_partials/social.ejs","hash":"9d40db0aa7f062adab1a0dcfa45c57e2a724ac00","modified":1489227145000},{"_id":"themes/huno/layout/_scripts/awesome-toc.ejs","hash":"b39df57929c246726ca45723ca9ad1a4104738c4","modified":1489227145000},{"_id":"themes/huno/layout/_scripts/github-repo-widget.ejs","hash":"ee64a8e431318cb8fb25f59cfeec0def95b58912","modified":1489227145000},{"_id":"themes/huno/layout/_scripts/killie6.ejs","hash":"2d5db8a53962ac704b8bfc40688319bed2e84ac9","modified":1489227145000},{"_id":"themes/huno/layout/_scripts/mathjax.ejs","hash":"2921f9f3b3c3e40f59c2d023764694a79ac07926","modified":1489227145000},{"_id":"themes/huno/source/css/archive.css","hash":"7238ea5f6bda859e3bae7aaa546caf27fe1fb0cc","modified":1489227145000},{"_id":"themes/huno/source/css/china-social-icon.css","hash":"2f90442f6d0d289e49c07a85c2dae32cab8b2063","modified":1489227145000},{"_id":"themes/huno/source/css/animate.css","hash":"651fcf046b1bd2bff3ab4cb8947ff7fe058de373","modified":1489227145000},{"_id":"themes/huno/source/css/highlight.styl","hash":"92eabbf94e7a06e968c356bedf4adb04700f1c2e","modified":1489227145000},{"_id":"themes/huno/source/css/uno.css","hash":"46bba34c851c3bbf507251c0f524b07012539f5a","modified":1489229564000},{"_id":"themes/huno/source/images/.DS_Store","hash":"c4855b6bc6ab942dd8f7397a7db2f8633d74409a","modified":1489227754000},{"_id":"themes/huno/source/images/totop.png","hash":"4f6cb11941e5a72b03cb00cf9d9d55671b4310eb","modified":1489227145000},{"_id":"themes/huno/source/js/awesome-toc.min.js","hash":"b4d0f2a33f8340eb2543e8b2cee0dfd745cfb54a","modified":1489227145000},{"_id":"themes/huno/source/js/jquery.githubRepoWidget.min.js","hash":"94a141fa474ec5022f7c397b4fd3ff92405ab755","modified":1489227145000},{"_id":"themes/huno/source/js/main.js","hash":"623b99967f8d0567a4a9d52e49375d976e46729c","modified":1489232160000},{"_id":"themes/huno/source/js/scale.fix.js","hash":"ce593f56728cc1cedf2e513cb20b926de3b05e07","modified":1489227145000},{"_id":"themes/huno/source/js/jquery.min.js","hash":"8b6babff47b8a9793f37036fd1b1a3ad41d38423","modified":1489227145000},{"_id":"themes/huno/.git/objects/pack/pack-df173f13e5aaa459344aa247ef5c04085717bf9c.idx","hash":"c2ca46ebc36a998f1e9a7c78681885253eb651c5","modified":1489227145000},{"_id":"themes/huno/.git/refs/heads/master","hash":"3c4512585bce805b5d221ad0b3f02fb85feb8b65","modified":1489227145000},{"_id":"themes/huno/source/fonts/china-social/china-social.eot","hash":"a43a5c3d66f0d38639a595ebd02857e152ada475","modified":1489227145000},{"_id":"themes/huno/source/fonts/china-social/china-social.svg","hash":"4bad780e6a31f4fa9fef037a3d9ecb8623042a6e","modified":1489227145000},{"_id":"themes/huno/source/fonts/china-social/china-social.ttf","hash":"2f94360528097df7dcfb39baf8df5393a0d47ca3","modified":1489227145000},{"_id":"themes/huno/source/fonts/china-social/china-social.woff","hash":"74c0ac5268cf7ffe270faaf7c960b74d483d2df1","modified":1489227145000},{"_id":"themes/huno/source/fonts/china-social/readme.html","hash":"ca335751de11d6ef7721dc907571de39cef6e361","modified":1489227145000},{"_id":"themes/huno/source/fonts/foundation-icons/.fontcustom-data","hash":"3b0cfb3ba2ee7ccae391bc66b3acaa6895932e5f","modified":1489227145000},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.css","hash":"426036f1d554b9dffae8b38acc36cade40d9521a","modified":1489227145000},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.eot","hash":"d584172686583fd510d8f04cf21e6e77fce51435","modified":1489227145000},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.woff","hash":"112fb0e498037f2fea036adb8105e47638159eaa","modified":1489227145000},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.ttf","hash":"4b2bce6c792493a4a5716b6fec2dbefe89492c3f","modified":1489227145000},{"_id":"themes/huno/.git/logs/refs/heads/master","hash":"59ed1c89891c64a513547e40b9a30a19bc4c9288","modified":1489227145000},{"_id":"themes/huno/.git/refs/remotes/origin/HEAD","hash":"d9427cda09aba1cdde5c69c2b13c905bddb0bc51","modified":1489227145000},{"_id":"themes/huno/source/fonts/foundation-icons/foundation-icons.svg","hash":"bdca38f453f9935203fe8cd071e97d7f8576e0be","modified":1489227145000},{"_id":"themes/huno/source/images/background-cover.jpg","hash":"d8290670a16917fe2db545aaced6125a6aa3999e","modified":1489229694000},{"_id":"themes/huno/.git/logs/refs/remotes/origin/HEAD","hash":"59ed1c89891c64a513547e40b9a30a19bc4c9288","modified":1489227145000},{"_id":"themes/huno/demo.gif","hash":"cf6121b4aa0f3b07a2f919099942d97206202aa8","modified":1489227145000},{"_id":"themes/huno/.git/objects/pack/pack-df173f13e5aaa459344aa247ef5c04085717bf9c.pack","hash":"c9eceb5ecc5be7f589e6ee0a2e9551faaf4d152b","modified":1489227145000},{"_id":"public/example/index.html","hash":"99a0cc1f303f118dfbd399fc9b02b9bb0435fc20","modified":1489232433731},{"_id":"public/start/index.html","hash":"42f6578df6398066f9e147653839069b6cd58b9a","modified":1489232433731},{"_id":"public/1970/01/01/install/index.html","hash":"94b674e9ac2cf078fa23a591db902dd4ac786d27","modified":1489232433732},{"_id":"public/1970/01/01/events/index.html","hash":"2195f2f41df86509f4c2381f94f21c132f1bbdc4","modified":1489232433732},{"_id":"public/1970/01/01/options/index.html","hash":"3b8dad77fa11dc97a843006224ad37e89d5783bb","modified":1489232433732},{"_id":"public/1970/01/01/trigger/index.html","hash":"1c74022d80f08b793149516da8e932864847a9ff","modified":1489232433732},{"_id":"public/archives/index.html","hash":"63bee9bbf486ed631d345c8fb198e1c829e52c5d","modified":1489232433732},{"_id":"public/archives/1970/index.html","hash":"dc1612e5b01a450995dbdd48d02106351a4e6169","modified":1489232433732},{"_id":"public/archives/1970/01/index.html","hash":"fd70a529cf3d164bfefb718ea46aa2aa443f2751","modified":1489232433732},{"_id":"public/index.html","hash":"6b266db265658de042c643366e2e6aad484954f3","modified":1489232433732},{"_id":"public/images/totop.png","hash":"4f6cb11941e5a72b03cb00cf9d9d55671b4310eb","modified":1489232433743},{"_id":"public/fonts/china-social/china-social.eot","hash":"a43a5c3d66f0d38639a595ebd02857e152ada475","modified":1489232433744},{"_id":"public/fonts/china-social/china-social.svg","hash":"4bad780e6a31f4fa9fef037a3d9ecb8623042a6e","modified":1489232433744},{"_id":"public/fonts/china-social/china-social.woff","hash":"74c0ac5268cf7ffe270faaf7c960b74d483d2df1","modified":1489232433744},{"_id":"public/fonts/china-social/china-social.ttf","hash":"2f94360528097df7dcfb39baf8df5393a0d47ca3","modified":1489232433745},{"_id":"public/fonts/foundation-icons/foundation-icons.eot","hash":"d584172686583fd510d8f04cf21e6e77fce51435","modified":1489232433745},{"_id":"public/fonts/foundation-icons/foundation-icons.woff","hash":"112fb0e498037f2fea036adb8105e47638159eaa","modified":1489232433745},{"_id":"public/fonts/foundation-icons/foundation-icons.ttf","hash":"4b2bce6c792493a4a5716b6fec2dbefe89492c3f","modified":1489232433745},{"_id":"public/css/archive.css","hash":"88005d441d52e143cd2ab4da53b1ec50e22f9ade","modified":1489232433962},{"_id":"public/css/china-social-icon.css","hash":"2f90442f6d0d289e49c07a85c2dae32cab8b2063","modified":1489232433962},{"_id":"public/css/highlight.css","hash":"701da6788bee02c165236174b6767ae06957f051","modified":1489232433962},{"_id":"public/js/awesome-toc.min.js","hash":"b4d0f2a33f8340eb2543e8b2cee0dfd745cfb54a","modified":1489232433962},{"_id":"public/js/jquery.githubRepoWidget.min.js","hash":"94a141fa474ec5022f7c397b4fd3ff92405ab755","modified":1489232433962},{"_id":"public/js/main.js","hash":"b340689a68a260bf033ca0f7600ccc73d169ae91","modified":1489232433962},{"_id":"public/js/scale.fix.js","hash":"bbf62458c63fca2535965f9dfaacfbc6bc697e03","modified":1489232433962},{"_id":"public/fonts/china-social/readme.html","hash":"ca335751de11d6ef7721dc907571de39cef6e361","modified":1489232433962},{"_id":"public/css/animate.css","hash":"a2f854fbdc52a5657dd5e2b95cc96c0da32f3ea2","modified":1489232433962},{"_id":"public/css/uno.css","hash":"d3e7295a5fb7633d2b95f3e123df63f0d8d3bc5a","modified":1489232433962},{"_id":"public/js/jquery.min.js","hash":"06e872300088b9ba8a08427d28ed0efcdf9c6ff5","modified":1489232433962},{"_id":"public/fonts/foundation-icons/foundation-icons.css","hash":"2ad3bb2b4b7d1d67b4d40a9672193638c168c12a","modified":1489232433962},{"_id":"public/fonts/foundation-icons/foundation-icons.svg","hash":"bdca38f453f9935203fe8cd071e97d7f8576e0be","modified":1489232433963},{"_id":"public/images/background-cover.jpg","hash":"d8290670a16917fe2db545aaced6125a6aa3999e","modified":1489232433966}],"Category":[],"Data":[],"Page":[{"title":"示例","_content":"\n### DEMO\n\n---\n\nbetter-scroll 的源码是基于 Webpack 构建的\n\n首先,clone项目源码\n\n```bash\ngit clone https://github.com/ustbhuangyi/better-scroll.git\n```\n安装依赖\n\n```bash\ncd better-scroll\nnpm install\n```\n测试demo页\n\n```bash\nnpm run dev\n```\n打开浏览器访问如下地址, 查看效果\n\n`localhost:9090`","source":"example/index.md","raw":"---\ntitle: 示例\n---\n\n### DEMO\n\n---\n\nbetter-scroll 的源码是基于 Webpack 构建的\n\n首先,clone项目源码\n\n```bash\ngit clone https://github.com/ustbhuangyi/better-scroll.git\n```\n安装依赖\n\n```bash\ncd better-scroll\nnpm install\n```\n测试demo页\n\n```bash\nnpm run dev\n```\n打开浏览器访问如下地址, 查看效果\n\n`localhost:9090`","date":"2017-03-11T10:44:00.000Z","updated":"2017-03-11T10:44:00.000Z","path":"example/index.html","comments":1,"layout":"page","_id":"cj056jfqx0000zus6rx3g0rz6","content":"<h3 id=\"DEMO\"><a href=\"#DEMO\" class=\"headerlink\" title=\"DEMO\"></a>DEMO</h3><hr>\n<p>better-scroll 的源码是基于 Webpack 构建的</p>\n<p>首先,clone项目源码</p>\n<figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\">git <span class=\"built_in\">clone</span> https://github.com/ustbhuangyi/better-scroll.git</div></pre></td></tr></table></figure>\n<p>安装依赖</p>\n<figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"built_in\">cd</span> better-scroll</div><div class=\"line\">npm install</div></pre></td></tr></table></figure>\n<p>测试demo页</p>\n<figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\">npm run dev</div></pre></td></tr></table></figure>\n<p>打开浏览器访问如下地址, 查看效果</p>\n<p><code>localhost:9090</code></p>\n","excerpt":"","more":"<h3 id=\"DEMO\"><a href=\"#DEMO\" class=\"headerlink\" title=\"DEMO\"></a>DEMO</h3><hr>\n<p>better-scroll 的源码是基于 Webpack 构建的</p>\n<p>首先,clone项目源码</p>\n<figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\">git <span class=\"built_in\">clone</span> https://github.com/ustbhuangyi/better-scroll.git</div></pre></td></tr></table></figure>\n<p>安装依赖</p>\n<figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"built_in\">cd</span> better-scroll</div><div class=\"line\">npm install</div></pre></td></tr></table></figure>\n<p>测试demo页</p>\n<figure class=\"highlight bash\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\">npm run dev</div></pre></td></tr></table></figure>\n<p>打开浏览器访问如下地址, 查看效果</p>\n<p><code>localhost:9090</code></p>\n"},{"title":"起步","_content":"\n### 快速开始\n\nHTML\n\n```html\n<body>\n <div id=\"wrapper\">\n <ul>\n <li>...</li>\n <li>...</li>\n ...\n </ul>\n </div>\n <script type=\"text/javascript\" src=\"bscroll.min.js\"></script>\n <script type=\"text/javascript\">\n new BScroll(document.getElementById('wrapper'));\n </script>\n</body>\n```\n搞定!","source":"start/index.md","raw":"---\ntitle: 起步\n---\n\n### 快速开始\n\nHTML\n\n```html\n<body>\n <div id=\"wrapper\">\n <ul>\n <li>...</li>\n <li>...</li>\n ...\n </ul>\n </div>\n <script type=\"text/javascript\" src=\"bscroll.min.js\"></script>\n <script type=\"text/javascript\">\n new BScroll(document.getElementById('wrapper'));\n </script>\n</body>\n```\n搞定!","date":"2017-03-11T10:42:45.000Z","updated":"2017-03-11T10:42:45.000Z","path":"start/index.html","comments":1,"layout":"page","_id":"cj056jfqz0001zus6nyisb1nu","content":"<h3 id=\"快速开始\"><a href=\"#快速开始\" class=\"headerlink\" title=\"快速开始\"></a>快速开始</h3><p>HTML</p>\n<figure class=\"highlight html\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div><div class=\"line\">3</div><div class=\"line\">4</div><div class=\"line\">5</div><div class=\"line\">6</div><div class=\"line\">7</div><div class=\"line\">8</div><div class=\"line\">9</div><div class=\"line\">10</div><div class=\"line\">11</div><div class=\"line\">12</div><div class=\"line\">13</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"tag\"><<span class=\"name\">body</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">div</span> <span class=\"attr\">id</span>=<span class=\"string\">\"wrapper\"</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">ul</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">li</span>></span>...<span class=\"tag\"></<span class=\"name\">li</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">li</span>></span>...<span class=\"tag\"></<span class=\"name\">li</span>></span></div><div class=\"line\"> ...</div><div class=\"line\"> <span class=\"tag\"></<span class=\"name\">ul</span>></span></div><div class=\"line\"> <span class=\"tag\"></<span class=\"name\">div</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">script</span> <span class=\"attr\">type</span>=<span class=\"string\">\"text/javascript\"</span> <span class=\"attr\">src</span>=<span class=\"string\">\"bscroll.min.js\"</span>></span><span class=\"undefined\"></span><span class=\"tag\"></<span class=\"name\">script</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">script</span> <span class=\"attr\">type</span>=<span class=\"string\">\"text/javascript\"</span>></span><span class=\"javascript\"></span></div><div class=\"line\"> <span class=\"keyword\">new</span> BScroll(<span class=\"built_in\">document</span>.getElementById(<span class=\"string\">'wrapper'</span>));</div><div class=\"line\"> <span class=\"tag\"></<span class=\"name\">script</span>></span></div><div class=\"line\"><span class=\"tag\"></<span class=\"name\">body</span>></span></div></pre></td></tr></table></figure>\n<p>搞定!</p>\n","excerpt":"","more":"<h3 id=\"快速开始\"><a href=\"#快速开始\" class=\"headerlink\" title=\"快速开始\"></a>快速开始</h3><p>HTML</p>\n<figure class=\"highlight html\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div><div class=\"line\">3</div><div class=\"line\">4</div><div class=\"line\">5</div><div class=\"line\">6</div><div class=\"line\">7</div><div class=\"line\">8</div><div class=\"line\">9</div><div class=\"line\">10</div><div class=\"line\">11</div><div class=\"line\">12</div><div class=\"line\">13</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"tag\"><<span class=\"name\">body</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">div</span> <span class=\"attr\">id</span>=<span class=\"string\">\"wrapper\"</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">ul</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">li</span>></span>...<span class=\"tag\"></<span class=\"name\">li</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">li</span>></span>...<span class=\"tag\"></<span class=\"name\">li</span>></span></div><div class=\"line\"> ...</div><div class=\"line\"> <span class=\"tag\"></<span class=\"name\">ul</span>></span></div><div class=\"line\"> <span class=\"tag\"></<span class=\"name\">div</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">script</span> <span class=\"attr\">type</span>=<span class=\"string\">\"text/javascript\"</span> <span class=\"attr\">src</span>=<span class=\"string\">\"bscroll.min.js\"</span>></span><span class=\"undefined\"></span><span class=\"tag\"></<span class=\"name\">script</span>></span></div><div class=\"line\"> <span class=\"tag\"><<span class=\"name\">script</span> <span class=\"attr\">type</span>=<span class=\"string\">\"text/javascript\"</span>></span><span class=\"javascript\"></div><div class=\"line\"> <span class=\"keyword\">new</span> BScroll(<span class=\"built_in\">document</span>.getElementById(<span class=\"string\">'wrapper'</span>));</div><div class=\"line\"> </span><span class=\"tag\"></<span class=\"name\">script</span>></span></div><div class=\"line\"><span class=\"tag\"></<span class=\"name\">body</span>></span></div></pre></td></tr></table></figure>\n<p>搞定!</p>\n"}],"Post":[{"title":"Events 事件","date":"1970-01-01T00:00:00.003Z","_content":"\nExample:\n\n```javascript\nlet scroll = new BScroll(document.getElementById('wrapper'),{\n probeType: 3\n})\n\nscroll.on('scroll', (pos) => {\n console.log(pos.x + '~' + posx.y)\n ...\n})\n```\n\nEvents 列表\n\n- beforeScrollStart - 滚动开始之前触发\n- scrollStart - 滚动开始时触发\n- scroll - 滚动时触发\n- scrollCancel - 取消滚动时触发\n- scrollEnd - 滚动结束时触发\n- flick - 触发了 fastclick 时的回调函数\n- refresh - 当 better-scroll 刷新时触发\n- destroy - 销毁 better-scroll 实例时触发\n","source":"_posts/events.md","raw":"---\ntitle: Events 事件\ndate: 3\n---\n\nExample:\n\n```javascript\nlet scroll = new BScroll(document.getElementById('wrapper'),{\n probeType: 3\n})\n\nscroll.on('scroll', (pos) => {\n console.log(pos.x + '~' + posx.y)\n ...\n})\n```\n\nEvents 列表\n\n- beforeScrollStart - 滚动开始之前触发\n- scrollStart - 滚动开始时触发\n- scroll - 滚动时触发\n- scrollCancel - 取消滚动时触发\n- scrollEnd - 滚动结束时触发\n- flick - 触发了 fastclick 时的回调函数\n- refresh - 当 better-scroll 刷新时触发\n- destroy - 销毁 better-scroll 实例时触发\n","slug":"events","published":1,"updated":"2017-03-11T11:40:17.000Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cj056jfrd0002zus6jkm16kky","content":"<p>Example:</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div><div class=\"line\">3</div><div class=\"line\">4</div><div class=\"line\">5</div><div class=\"line\">6</div><div class=\"line\">7</div><div class=\"line\">8</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">let</span> scroll = <span class=\"keyword\">new</span> BScroll(<span class=\"built_in\">document</span>.getElementById(<span class=\"string\">'wrapper'</span>),{</div><div class=\"line\"> <span class=\"attr\">probeType</span>: <span class=\"number\">3</span></div><div class=\"line\">})</div><div class=\"line\"></div><div class=\"line\">scroll.on(<span class=\"string\">'scroll'</span>, (pos) => {</div><div class=\"line\"> <span class=\"built_in\">console</span>.log(pos.x + <span class=\"string\">'~'</span> + posx.y)</div><div class=\"line\"> ...</div><div class=\"line\">})</div></pre></td></tr></table></figure>\n<p>Events 列表</p>\n<ul>\n<li>beforeScrollStart - 滚动开始之前触发</li>\n<li>scrollStart - 滚动开始时触发</li>\n<li>scroll - 滚动时触发</li>\n<li>scrollCancel - 取消滚动时触发</li>\n<li>scrollEnd - 滚动结束时触发</li>\n<li>flick - 触发了 fastclick 时的回调函数</li>\n<li>refresh - 当 better-scroll 刷新时触发</li>\n<li>destroy - 销毁 better-scroll 实例时触发</li>\n</ul>\n","excerpt":"","more":"<p>Example:</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div><div class=\"line\">3</div><div class=\"line\">4</div><div class=\"line\">5</div><div class=\"line\">6</div><div class=\"line\">7</div><div class=\"line\">8</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">let</span> scroll = <span class=\"keyword\">new</span> BScroll(<span class=\"built_in\">document</span>.getElementById(<span class=\"string\">'wrapper'</span>),{</div><div class=\"line\"> <span class=\"attr\">probeType</span>: <span class=\"number\">3</span></div><div class=\"line\">})</div><div class=\"line\"></div><div class=\"line\">scroll.on(<span class=\"string\">'scroll'</span>, (pos) => {</div><div class=\"line\"> <span class=\"built_in\">console</span>.log(pos.x + <span class=\"string\">'~'</span> + posx.y)</div><div class=\"line\"> ...</div><div class=\"line\">})</div></pre></td></tr></table></figure>\n<p>Events 列表</p>\n<ul>\n<li>beforeScrollStart - 滚动开始之前触发</li>\n<li>scrollStart - 滚动开始时触发</li>\n<li>scroll - 滚动时触发</li>\n<li>scrollCancel - 取消滚动时触发</li>\n<li>scrollEnd - 滚动结束时触发</li>\n<li>flick - 触发了 fastclick 时的回调函数</li>\n<li>refresh - 当 better-scroll 刷新时触发</li>\n<li>destroy - 销毁 better-scroll 实例时触发</li>\n</ul>\n"},{"title":"Install 安装","date":"1970-01-01T00:00:00.004Z","_content":"\n### 通过npm引入\n安装better-scroll\n\n```javascript\nnpm install better-scroll --save-dev\n```\n引入better-scroll\n\n```javascript\nimport BScroll from 'better-scroll'\n```\n如果不支持import, 请使用\n\n```javascript\nvar BScroll = require('better-scroll')\n```\n","source":"_posts/install.md","raw":"---\ntitle: Install 安装\ndate: 4\n---\n\n### 通过npm引入\n安装better-scroll\n\n```javascript\nnpm install better-scroll --save-dev\n```\n引入better-scroll\n\n```javascript\nimport BScroll from 'better-scroll'\n```\n如果不支持import, 请使用\n\n```javascript\nvar BScroll = require('better-scroll')\n```\n","slug":"install","published":1,"updated":"2017-03-11T11:40:08.000Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cj056jfrh0003zus6fi6yl30a","content":"<h3 id=\"通过npm引入\"><a href=\"#通过npm引入\" class=\"headerlink\" title=\"通过npm引入\"></a>通过npm引入</h3><p>安装better-scroll</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\">npm install better-scroll --save-dev</div></pre></td></tr></table></figure>\n<p>引入better-scroll</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">import</span> BScroll <span class=\"keyword\">from</span> <span class=\"string\">'better-scroll'</span></div></pre></td></tr></table></figure>\n<p>如果不支持import, 请使用</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">var</span> BScroll = <span class=\"built_in\">require</span>(<span class=\"string\">'better-scroll'</span>)</div></pre></td></tr></table></figure>\n","excerpt":"","more":"<h3 id=\"通过npm引入\"><a href=\"#通过npm引入\" class=\"headerlink\" title=\"通过npm引入\"></a>通过npm引入</h3><p>安装better-scroll</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\">npm install better-scroll --save-dev</div></pre></td></tr></table></figure>\n<p>引入better-scroll</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">import</span> BScroll <span class=\"keyword\">from</span> <span class=\"string\">'better-scroll'</span></div></pre></td></tr></table></figure>\n<p>如果不支持import, 请使用</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">var</span> BScroll = <span class=\"built_in\">require</span>(<span class=\"string\">'better-scroll'</span>)</div></pre></td></tr></table></figure>\n"},{"title":"Options 参数","date":"1970-01-01T00:00:00.003Z","_content":"\nExample:\n\n```javascript\nlet scroll = new BScroll(document.getElementById('wrapper'), {\n startX: 0,\n startY: 0\n})\n```\n\nOptions List:\n\n- startX: `0` 开始的X轴位置\n- startY: `0` 开始的Y轴位置\n- scrollY: `true` 滚动方向\n- click: `true` 是否启用click事件\n- directionLockThreshold: `5`\n- momentum: `true` 是否开启拖动惯性\n- bounce: `true` 是否启用弹力动画效果,关掉可以加速\n- selectedIndex: `0` \n- rotate: `25` \n- wheel: `false` 该属性是给 picker 组件使用的,普通的列表滚动不需要配置\n- snap: `false` 是否开启捕捉元素,当为 true 时,捕捉的元素会根据可滚动的位置和滚动区域计算得到可滑动几页。\n- snapLoop: `false` 是否创建当前滚动元素子集的拷贝\n- snapThreshold: `0.1` 滑动的长度限制,只有大于这个距离才会触发事件\n- swipeTime: `2500` swipe 持续时间\n- bounceTime: `700` 弹力动画持续的毫秒数\n- adjustTime: `400`\n- swipeBounceTime: `1200`\n- deceleration: `0.001` 滚动动量减速越大越快,建议不大于0.01\n- momentumLimitTime: `300` 惯性拖动的回弹时间\n- momentumLimitDistance: `15` 惯性拖动的回弹距离\n- resizePolling: `60` 重新调整窗口大小时,重新计算better-scroll的时间间隔\n- probeType: `1` 监听事件的触发时间,1为即时触发,3为延迟到事件完毕后触发\n- preventDefault: `true` 是否阻止默认事件\n- preventDefaultException: `{ tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/ }` 阻止默认事件\n- HWCompositing: `true` 是否启用硬件加速\n- useTransition: `true` 是否使用CSS3的Transition属性,否则使用-requestAnimationFram代替\n- useTransform: `true` 是否使用CSS3的Transform属性\n- probeType: `1` 滚动的时候会派发scroll事件,会截流。`2`滚动的时候实时派发scroll事件,不会截流。 `3`除了实时派发scroll事件,在swipe的情况下仍然能实时派发scroll事件\n\n","source":"_posts/options.md","raw":"---\ntitle: Options 参数\ndate: 3\n---\n\nExample:\n\n```javascript\nlet scroll = new BScroll(document.getElementById('wrapper'), {\n startX: 0,\n startY: 0\n})\n```\n\nOptions List:\n\n- startX: `0` 开始的X轴位置\n- startY: `0` 开始的Y轴位置\n- scrollY: `true` 滚动方向\n- click: `true` 是否启用click事件\n- directionLockThreshold: `5`\n- momentum: `true` 是否开启拖动惯性\n- bounce: `true` 是否启用弹力动画效果,关掉可以加速\n- selectedIndex: `0` \n- rotate: `25` \n- wheel: `false` 该属性是给 picker 组件使用的,普通的列表滚动不需要配置\n- snap: `false` 是否开启捕捉元素,当为 true 时,捕捉的元素会根据可滚动的位置和滚动区域计算得到可滑动几页。\n- snapLoop: `false` 是否创建当前滚动元素子集的拷贝\n- snapThreshold: `0.1` 滑动的长度限制,只有大于这个距离才会触发事件\n- swipeTime: `2500` swipe 持续时间\n- bounceTime: `700` 弹力动画持续的毫秒数\n- adjustTime: `400`\n- swipeBounceTime: `1200`\n- deceleration: `0.001` 滚动动量减速越大越快,建议不大于0.01\n- momentumLimitTime: `300` 惯性拖动的回弹时间\n- momentumLimitDistance: `15` 惯性拖动的回弹距离\n- resizePolling: `60` 重新调整窗口大小时,重新计算better-scroll的时间间隔\n- probeType: `1` 监听事件的触发时间,1为即时触发,3为延迟到事件完毕后触发\n- preventDefault: `true` 是否阻止默认事件\n- preventDefaultException: `{ tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/ }` 阻止默认事件\n- HWCompositing: `true` 是否启用硬件加速\n- useTransition: `true` 是否使用CSS3的Transition属性,否则使用-requestAnimationFram代替\n- useTransform: `true` 是否使用CSS3的Transform属性\n- probeType: `1` 滚动的时候会派发scroll事件,会截流。`2`滚动的时候实时派发scroll事件,不会截流。 `3`除了实时派发scroll事件,在swipe的情况下仍然能实时派发scroll事件\n\n","slug":"options","published":1,"updated":"2017-03-11T11:40:21.000Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cj056jfrj0004zus6sdzw0gul","content":"<p>Example:</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div><div class=\"line\">3</div><div class=\"line\">4</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">let</span> scroll = <span class=\"keyword\">new</span> BScroll(<span class=\"built_in\">document</span>.getElementById(<span class=\"string\">'wrapper'</span>), {</div><div class=\"line\"> <span class=\"attr\">startX</span>: <span class=\"number\">0</span>,</div><div class=\"line\"> <span class=\"attr\">startY</span>: <span class=\"number\">0</span></div><div class=\"line\">})</div></pre></td></tr></table></figure>\n<p>Options List:</p>\n<ul>\n<li>startX: <code>0</code> 开始的X轴位置</li>\n<li>startY: <code>0</code> 开始的Y轴位置</li>\n<li>scrollY: <code>true</code> 滚动方向</li>\n<li>click: <code>true</code> 是否启用click事件</li>\n<li>directionLockThreshold: <code>5</code></li>\n<li>momentum: <code>true</code> 是否开启拖动惯性</li>\n<li>bounce: <code>true</code> 是否启用弹力动画效果,关掉可以加速</li>\n<li>selectedIndex: <code>0</code> </li>\n<li>rotate: <code>25</code> </li>\n<li>wheel: <code>false</code> 该属性是给 picker 组件使用的,普通的列表滚动不需要配置</li>\n<li>snap: <code>false</code> 是否开启捕捉元素,当为 true 时,捕捉的元素会根据可滚动的位置和滚动区域计算得到可滑动几页。</li>\n<li>snapLoop: <code>false</code> 是否创建当前滚动元素子集的拷贝</li>\n<li>snapThreshold: <code>0.1</code> 滑动的长度限制,只有大于这个距离才会触发事件</li>\n<li>swipeTime: <code>2500</code> swipe 持续时间</li>\n<li>bounceTime: <code>700</code> 弹力动画持续的毫秒数</li>\n<li>adjustTime: <code>400</code></li>\n<li>swipeBounceTime: <code>1200</code></li>\n<li>deceleration: <code>0.001</code> 滚动动量减速越大越快,建议不大于0.01</li>\n<li>momentumLimitTime: <code>300</code> 惯性拖动的回弹时间</li>\n<li>momentumLimitDistance: <code>15</code> 惯性拖动的回弹距离</li>\n<li>resizePolling: <code>60</code> 重新调整窗口大小时,重新计算better-scroll的时间间隔</li>\n<li>probeType: <code>1</code> 监听事件的触发时间,1为即时触发,3为延迟到事件完毕后触发</li>\n<li>preventDefault: <code>true</code> 是否阻止默认事件</li>\n<li>preventDefaultException: <code>{ tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/ }</code> 阻止默认事件</li>\n<li>HWCompositing: <code>true</code> 是否启用硬件加速</li>\n<li>useTransition: <code>true</code> 是否使用CSS3的Transition属性,否则使用-requestAnimationFram代替</li>\n<li>useTransform: <code>true</code> 是否使用CSS3的Transform属性</li>\n<li>probeType: <code>1</code> 滚动的时候会派发scroll事件,会截流。<code>2</code>滚动的时候实时派发scroll事件,不会截流。 <code>3</code>除了实时派发scroll事件,在swipe的情况下仍然能实时派发scroll事件</li>\n</ul>\n","excerpt":"","more":"<p>Example:</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div><div class=\"line\">3</div><div class=\"line\">4</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">let</span> scroll = <span class=\"keyword\">new</span> BScroll(<span class=\"built_in\">document</span>.getElementById(<span class=\"string\">'wrapper'</span>), {</div><div class=\"line\"> <span class=\"attr\">startX</span>: <span class=\"number\">0</span>,</div><div class=\"line\"> <span class=\"attr\">startY</span>: <span class=\"number\">0</span></div><div class=\"line\">})</div></pre></td></tr></table></figure>\n<p>Options List:</p>\n<ul>\n<li>startX: <code>0</code> 开始的X轴位置</li>\n<li>startY: <code>0</code> 开始的Y轴位置</li>\n<li>scrollY: <code>true</code> 滚动方向</li>\n<li>click: <code>true</code> 是否启用click事件</li>\n<li>directionLockThreshold: <code>5</code></li>\n<li>momentum: <code>true</code> 是否开启拖动惯性</li>\n<li>bounce: <code>true</code> 是否启用弹力动画效果,关掉可以加速</li>\n<li>selectedIndex: <code>0</code> </li>\n<li>rotate: <code>25</code> </li>\n<li>wheel: <code>false</code> 该属性是给 picker 组件使用的,普通的列表滚动不需要配置</li>\n<li>snap: <code>false</code> 是否开启捕捉元素,当为 true 时,捕捉的元素会根据可滚动的位置和滚动区域计算得到可滑动几页。</li>\n<li>snapLoop: <code>false</code> 是否创建当前滚动元素子集的拷贝</li>\n<li>snapThreshold: <code>0.1</code> 滑动的长度限制,只有大于这个距离才会触发事件</li>\n<li>swipeTime: <code>2500</code> swipe 持续时间</li>\n<li>bounceTime: <code>700</code> 弹力动画持续的毫秒数</li>\n<li>adjustTime: <code>400</code></li>\n<li>swipeBounceTime: <code>1200</code></li>\n<li>deceleration: <code>0.001</code> 滚动动量减速越大越快,建议不大于0.01</li>\n<li>momentumLimitTime: <code>300</code> 惯性拖动的回弹时间</li>\n<li>momentumLimitDistance: <code>15</code> 惯性拖动的回弹距离</li>\n<li>resizePolling: <code>60</code> 重新调整窗口大小时,重新计算better-scroll的时间间隔</li>\n<li>probeType: <code>1</code> 监听事件的触发时间,1为即时触发,3为延迟到事件完毕后触发</li>\n<li>preventDefault: <code>true</code> 是否阻止默认事件</li>\n<li>preventDefaultException: <code>{ tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/ }</code> 阻止默认事件</li>\n<li>HWCompositing: <code>true</code> 是否启用硬件加速</li>\n<li>useTransition: <code>true</code> 是否使用CSS3的Transition属性,否则使用-requestAnimationFram代替</li>\n<li>useTransform: <code>true</code> 是否使用CSS3的Transform属性</li>\n<li>probeType: <code>1</code> 滚动的时候会派发scroll事件,会截流。<code>2</code>滚动的时候实时派发scroll事件,不会截流。 <code>3</code>除了实时派发scroll事件,在swipe的情况下仍然能实时派发scroll事件</li>\n</ul>\n"},{"title":"Trigger 派发事件","date":"1970-01-01T00:00:00.001Z","_content":"\n## 派发滚动\n\n- scrollTo(x, y, time, easing) 滚动到某个位置,x,y 代表坐标,time 表示动画时间,easing 表示缓动函数\n\nExample:\n\n```javascript\nlet scroll = new BScroll(document.getElementById('wrapper'))\nscroll.scrollTo(0, 500)\n...\n```\n- scrollToElement(el, time, offsetX, offsetY, easing) 滚动到\n 某个元素,el(必填)表示 dom 元素,time 表示动画,offsetX 和 offsetY 表示坐标偏移量,easing 表示缓动函数\n\n","source":"_posts/trigger.md","raw":"---\ntitle: Trigger 派发事件\ndate: 1\n---\n\n## 派发滚动\n\n- scrollTo(x, y, time, easing) 滚动到某个位置,x,y 代表坐标,time 表示动画时间,easing 表示缓动函数\n\nExample:\n\n```javascript\nlet scroll = new BScroll(document.getElementById('wrapper'))\nscroll.scrollTo(0, 500)\n...\n```\n- scrollToElement(el, time, offsetX, offsetY, easing) 滚动到\n 某个元素,el(必填)表示 dom 元素,time 表示动画,offsetX 和 offsetY 表示坐标偏移量,easing 表示缓动函数\n\n","slug":"trigger","published":1,"updated":"2017-03-11T11:40:27.000Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cj056jfrl0005zus68ypilyw4","content":"<h2 id=\"派发滚动\"><a href=\"#派发滚动\" class=\"headerlink\" title=\"派发滚动\"></a>派发滚动</h2><ul>\n<li>scrollTo(x, y, time, easing) 滚动到某个位置,x,y 代表坐标,time 表示动画时间,easing 表示缓动函数</li>\n</ul>\n<p>Example:</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div><div class=\"line\">3</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">let</span> scroll = <span class=\"keyword\">new</span> BScroll(<span class=\"built_in\">document</span>.getElementById(<span class=\"string\">'wrapper'</span>))</div><div class=\"line\">scroll.scrollTo(<span class=\"number\">0</span>, <span class=\"number\">500</span>)</div><div class=\"line\">...</div></pre></td></tr></table></figure>\n<ul>\n<li>scrollToElement(el, time, offsetX, offsetY, easing) 滚动到<br>某个元素,el(必填)表示 dom 元素,time 表示动画,offsetX 和 offsetY 表示坐标偏移量,easing 表示缓动函数</li>\n</ul>\n","excerpt":"","more":"<h2 id=\"派发滚动\"><a href=\"#派发滚动\" class=\"headerlink\" title=\"派发滚动\"></a>派发滚动</h2><ul>\n<li>scrollTo(x, y, time, easing) 滚动到某个位置,x,y 代表坐标,time 表示动画时间,easing 表示缓动函数</li>\n</ul>\n<p>Example:</p>\n<figure class=\"highlight javascript\"><table><tr><td class=\"gutter\"><pre><div class=\"line\">1</div><div class=\"line\">2</div><div class=\"line\">3</div></pre></td><td class=\"code\"><pre><div class=\"line\"><span class=\"keyword\">let</span> scroll = <span class=\"keyword\">new</span> BScroll(<span class=\"built_in\">document</span>.getElementById(<span class=\"string\">'wrapper'</span>))</div><div class=\"line\">scroll.scrollTo(<span class=\"number\">0</span>, <span class=\"number\">500</span>)</div><div class=\"line\">...</div></pre></td></tr></table></figure>\n<ul>\n<li>scrollToElement(el, time, offsetX, offsetY, easing) 滚动到<br>某个元素,el(必填)表示 dom 元素,time 表示动画,offsetX 和 offsetY 表示坐标偏移量,easing 表示缓动函数</li>\n</ul>\n"}],"PostAsset":[],"PostCategory":[],"PostTag":[],"Tag":[]}}