摘要: wxml页面编写👇 <view class="container"> <view bindtap="box" class="box" > <view disable-scroll="true" wx:for="{{content}}" bindtouchmove="move" bindtouchs 阅读全文
posted @ 2020-11-23 15:04 武小妞 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: 参考:https://cloud.tencent.com/document/product/1007/31071 阅读全文
posted @ 2020-10-29 12:00 武小妞 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 函数调用 Dialog 是一个函数而不是组件,因此可以直接调用,展示对应的提示弹窗 import { Dialog } from 'vant'; Dialog({ message: '提示' }); 组件调用 通过组件调用 Dialog 时,可以通过下面的方式进行注册 import Vue from 阅读全文
posted @ 2020-08-12 20:23 武小妞 阅读(4812) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <el-button :disabled="disabled" @click="sendcode" class="sendcode">{{btntxt}}</el-button> </div> </template> <script> export default 阅读全文
posted @ 2020-08-11 16:35 武小妞 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1.本地库初始化:git init 2.设置签名: (1)项目级别(项目里面) git config user.name xxx git config user.email xxx (2)系统级别(所有的项目) git config --global user.name xxx git config 阅读全文
posted @ 2020-08-08 20:07 武小妞 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 首先官网介绍,用 Vue.js + vue-router 创建单页应用,是非常简单的。使用 Vue.js ,我们已经可以通过组合组件来组成应用程序,当你要把 vue-router 添加进来,我们需要做的是,将组件(components)映射到路由(routes),然后告诉 vue-router 在哪 阅读全文
posted @ 2020-08-08 19:55 武小妞 阅读(821) 评论(0) 推荐(0) 编辑
摘要: overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 阅读全文
posted @ 2020-07-29 15:25 武小妞 阅读(229) 评论(0) 推荐(0) 编辑
摘要: https://cloud.tencent.com/developer/section/1489884 阅读全文
posted @ 2020-07-22 21:24 武小妞 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、数字数组转化为字符串数组 var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]; arr.map(String); //结果: ['1', '2', '3', '4', '5', '6', '7', '8', '9'] 2、字符串数组转化为数字数组 var a = ['1' 阅读全文
posted @ 2020-07-21 17:21 武小妞 阅读(17465) 评论(1) 推荐(6) 编辑
摘要: today 是需要计算的某一天的日期例如“2018-12-12”,传 null 默认今天,addDayCount 是要推算的天数, -1是前一天,0是今天,1是后一天。 onLoad: function(options) { var that = this; //获取明天 that.getDateS 阅读全文
posted @ 2020-07-20 17:49 武小妞 阅读(771) 评论(0) 推荐(0) 编辑