摘要: 1,slide是固定一屏的 在移动端使用swiper的整屏滚动,如果slide里面有滚动内容的话,滚动的时候会整个页面一起滚动,如果想里面的滚动区域单独滚动的话,可以在初始化swiper的时候添加上 noSwipingClass 这个选项,值就是你想滚动的那个区域的class。 new Swiper 阅读全文
posted @ 2019-09-26 11:25 哈哈敲敲 阅读(4876) 评论(0) 推荐(1) 编辑
摘要: 参考链接:https://www.jianshu.com/p/fd5ca43b885a 一镜到底H5:https://segmentfault.com/a/1190000017848401 阅读全文
posted @ 2019-09-06 16:04 哈哈敲敲 阅读(950) 评论(0) 推荐(0) 编辑
摘要: function copyStr(val) { //val 是要复制的字符串 var input = document.createElement("input"); input.value = val; input.readOnly = true document.body.appendChild(input); input.select(); input.setSelectionRange(0 阅读全文
posted @ 2019-09-04 17:02 哈哈敲敲 阅读(1441) 评论(0) 推荐(0) 编辑
摘要: p.s. 记得引入JQ和iscroll.js 参考链接:https://www.jianshu.com/p/e6127f1e654f 阅读全文
posted @ 2019-08-06 11:50 哈哈敲敲 阅读(698) 评论(0) 推荐(0) 编辑
摘要: //第一次提交 git init 初始化 git add . //添加所有文件 git commit -m "xxx" //提交文件并备注 xxx 是你写的备注 git remote add origin xxxx //设置上传地址 xxx就是你要上传的仓库地址 git push -u origin 阅读全文
posted @ 2019-07-24 10:34 哈哈敲敲 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 事件(event):PIXI库在精灵和舞台上提供了事件,用于交互. 此外,还有.mousedown,.mouseover,.mouseout,.mousemove,.mouseup ,.mouseupoutside , .touchstart,.touchend,.tap 注意事项: 不过又不完全相 阅读全文
posted @ 2019-07-18 16:33 哈哈敲敲 阅读(769) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://www.cnblogs.com/luorende/p/9679962.html 阅读全文
posted @ 2019-06-27 16:20 哈哈敲敲 阅读(4739) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://segmentfault.com/a/1190000013606983 例子: 注意: drop 是拖放结束的目标区域,要先把dragover的默认事件禁止才能出发drop事件 阅读全文
posted @ 2019-05-10 10:40 哈哈敲敲 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1,map等原生组件层级是最高的,要想在上面覆盖其他元素,要用cover-text 或者 cover-view组件 2, 使用cover-view时要注意fixed定位问题,如果有滚动区域,例如新闻列表等,在下拉刷新或点击分页等行为加载新数据后,定位的cover-view可能会卡在之前的位置,就是不 阅读全文
posted @ 2019-04-25 21:49 哈哈敲敲 阅读(212) 评论(0) 推荐(0) 编辑
摘要: IOS的移动端/H5/webapp 页面如果滚动到底部或者在页面顶部再往上拉,都会出现一个回弹的效果,底部会出现一块空白。 想取消这个效果可以引入一个简单的库就行,不用再写繁琐的样式。 github地址 直接引入就行 <script src="inobounce.js"></script> 例子: 阅读全文
posted @ 2019-02-22 11:30 哈哈敲敲 阅读(11523) 评论(1) 推荐(1) 编辑