![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
倒计时
裴嘉靖
学而不思则罔 思而不学则殆
展开
-
Vue自制倒计时
//数据区定义timeout function init(){ this_.timeout=10; this_.isdisabled=true;//按钮能用 } var t=setInterval(function(){ this_.timeout--; if(this_.timeout<=0){ .原创 2020-08-13 17:22:59 · 111 阅读 · 0 评论 -
uni-app倒计时 请仔细阅读许可协议
setTimeout函数实机测试无效在uni-app中setTimeout的函数写法与原生JS中的写法略有不同,使用原生的写法不会报错,但该写法会不起作用官方文档<!-- 点击阅读条款 --> <view class="c9 textcertent" style="border: 1px solid red;"> <!-- 复选框 --> <checkbox @tap="checked" :data-index="index" :c原创 2020-06-04 10:51:27 · 1575 阅读 · 0 评论 -
原生:倒计时(请仔细阅读许可协议)
<!DOCTYPE html><html> <head> <title>许可协议按钮</title> <meta charset="gb2312" /> <style type="text/css"> #an{ width:170px;height:24px; } </style> <script type="text/javascript"> var i=10原创 2020-06-04 10:43:20 · 208 阅读 · 0 评论