![](https://img-blog.csdnimg.cn/20190918140213434.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
JavaScript
chuk.
better.
展开
-
网站保存到桌面功能
将本网站保存到桌面的功能 download() { axios({ method: "get", url: "http://www.xxx.com/shortcut.url", data: {}, responseType: "blob" }).then(res => { let data = res.data; let url = window.URL.createObjectURL(new Blob([data])); let l.原创 2021-07-24 18:57:27 · 137 阅读 · 0 评论 -
获取每一天的时间
// 初始化时间 获取当前一个月 initTime() { const endDate = this.getFormatDate(new Date(new Date() - 3600 * 1000 * 24 * 2)).substr(0, 11) const beginDate = this.getFormatDate(new Date(new Date() - 3600 * 1000 * 24 * 8)).substr(0, 11) const nowDate.原创 2021-07-24 18:48:46 · 177 阅读 · 0 评论 -
Vue短信验证倒计时60秒
(1)HTML代码 使用element-ui <el-button @click="accessVerify">{{ btn }}</el-button> (2)Js代码 data() { return { btn: "获取验证码", disabled: false, plain: false, timer: null, count: "" }; }, //获取短信验证 accessVerify() { this.btn原创 2021-05-16 22:13:36 · 197 阅读 · 0 评论