在vue.js使用v-for遍历出的li中的@click事件在移动端无效,在网页端可以执行,代码如下 应该是你使用了better-scroll的原因,默认它会阻止touch事件。所以在配置中需要加上click: true 具体的配置还可以查看 https://github.com/ustbhuang ...
分类:
移动开发 时间:
2017-10-08 20:27:14
阅读次数:
249
1.产品相关信息 1.1你选择的产品是 我选择的产品是网易云音乐 1.2为什么选择该产品作为分析? 著名短租网站Airbnb创始人Brian Chesky在去年的一次演讲中曾经说过”Better to have a 100 people who love you than a million peo ...
分类:
其他好文 时间:
2017-10-07 19:43:36
阅读次数:
334
Buy Tickets Problem Description Railway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queu ...
分类:
其他好文 时间:
2017-10-06 17:33:57
阅读次数:
168
The darkness is no darkness with you. 有了你,黑暗将不再是黑暗。 The darkness will not be driven out if we failed to light a candle. With somebody accompanying us, ...
分类:
其他好文 时间:
2017-10-02 10:08:32
阅读次数:
94
Rather than envy others, it is better to speed up their own pace. 与其羡慕他人,不如加快自己的脚步。 The envy of others' success or happy life is not always a bad thin ...
分类:
其他好文 时间:
2017-10-02 00:24:52
阅读次数:
240
http://acm.hdu.edu.cn/showproblem.php?pid=1856 More is better Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 327680/102400 K (Java/Others)Total ...
分类:
其他好文 时间:
2017-09-29 01:41:41
阅读次数:
164
http://geek.csdn.net/news/detail/238243 原文:4 More Techniques for Writing Better Java 作者:Justin Albano 翻译:Vincent 译者注:如果现在要求对你写的Java代码进行优化,那你会怎么做呢?作者在本 ...
分类:
编程语言 时间:
2017-09-28 09:52:03
阅读次数:
164
什么是 better-scroll better-scroll 是一个移动端滚动的解决方案,它是基于 iscroll 的重写,它和 iscroll 的主要区别在这里。better-scroll 也很强大,不仅可以做普通的滚动列表,还可以做轮播图、picker 等等。 better-scroll 的 ...
分类:
其他好文 时间:
2017-09-27 17:32:03
阅读次数:
193
Vue中的better-scroll插件 问题: PC页面时,点击不会被 better-scroll阻止事件,初始化,给 better-scroll派发事件,使移动端拥有点击事件,因此切换到PC端时,点击事件会被执行两次, 方法:在点击时,传 $event变量,Better-scroll插件中的 e ...
记录一些比较实用的项目依赖: 1、fastclick 解决移动端click事件300ms延迟的一个问题 import引入,fastclick.attach(document.body); 2、better-scroll 移动端滑屏的操作,不用自己写了,开心 实例需要注意dom是否渲染,参数详情查看官 ...
分类:
其他好文 时间:
2017-09-25 01:00:01
阅读次数:
492