shiFN:function(e){
// touchstart
// touchend
let that=this;
let n=0;
// 判断是开始还是结束的参数
let textTure = e.type;
that.setData({
textTure: textTure
})
if (textTure =='touchstart'){
let lovetime = setInterval(function () {
n += 0.5;
 
if (that.data.textTure=='touchend') {
clearInterval(lovetime);
}
console.log(n);
that.setData({
bian: n
})
}, 500)
 
}
},
 
<view class='bt-item' bindtouchend='shiFN' bindtouchstart='shiFN'></view>

最新文章

  1. Sublime 3 如何设置xftp 排除文件夹“bower_components”,“node_modules”
  2. sqlite学习
  3. [Asp.net 5] DependencyInjection项目代码分析4-微软的实现(2)
  4. 【leetcode】Search in Rotated Sorted Array
  5. two sum - leetcode
  6. Redis常用方法
  7. js获取当前url信息
  8. $(function(){})与$(document).ready(function(){})
  9. spring3.0的jar包详解
  10. PL/SQL Developer下设置“长SQL自己主动换行”
  11. 使用JS的FormData对象
  12. mysql获取当前时间,前一天,后一天
  13. Javascript模版引擎mustache.js简介
  14. Windows Server 2016-Powershell管理站点复制
  15. MySQL事务,事务隔离级别详解
  16. python django基础四 ORM简介
  17. [PHP] 算法-二位有序数组中查找的PHP实现
  18. 使用rsync 同步数据一些常用参数和示例
  19. ASP入门(二)-创建Access数据库
  20. 反射已经&quot;Out&quot;,动态编译才能&quot;Hold&quot;住

热门文章

  1. Myeclipse破解总结
  2. 20155203 实验三《敏捷开发与XP实践》实验报告
  3. oracle基础命令
  4. [agc006E]Rotate 3x3
  5. cogs1533 [HNOI2002]营业额统计
  6. [cogs347]地震
  7. WPF DrawingContext Pen
  8. C#特性的简单介绍
  9. Windows隐藏账户
  10. mybatis SQL映射配置文件