摘要: 左侧竖线高度自适应 第一种方案: <!--pages/t/t.wxml--> <view class="step"> <view class="row"> <view class="col"> <view class="circle"> <!-- <image class="icon" src="/ 阅读全文
posted @ 2022-10-19 10:31 怀揣着梦想 阅读(501) 评论(0) 推荐(0)
摘要: <!-- wxml --> <picker bindchange="changePicker" value="{{i}}" range="{{list}}"> <!-- 注意这一层不能少,否则弹性布局失效 --> <view class="jcsb"> <view class="picker-val 阅读全文
posted @ 2022-08-29 14:58 怀揣着梦想 阅读(467) 评论(0) 推荐(0)
摘要: ###规则 台湾:3位或者4位;3位的时候2-9开头;4位的时候0开头 大陆或者香港:6位;首位不能为0 const r = /^([2-9]\d{2})|(0\d{3})|([1-9]\d{5})$/g; 邮编大全 阅读全文
posted @ 2022-08-19 23:21 怀揣着梦想 阅读(48) 评论(0) 推荐(0)
摘要: 新密码规则 至少有一位大写字母,小写字母,数字和特殊字符,不能输中文和空格 // (?![0-9]+$) 表示不能为纯数字 // (?![a-z]+$)(?![A-Z]+) 表示不能为纯大/小写字母 // (?!([^(0-9a-zA-Z)])+$) 表示不能为除数字和字母外的纯特殊符号 // (? 阅读全文
posted @ 2022-08-03 11:57 怀揣着梦想 阅读(267) 评论(0) 推荐(0)
摘要: 使用到:Animation 官方文档链接https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/wx.createAnimation.html 组件popup 路径components/popup popup.wxml 点击 阅读全文
posted @ 2022-06-02 14:09 怀揣着梦想 阅读(1788) 评论(0) 推荐(0)
摘要: <textarea name="" id="text" cols="40" rows="10"> 第一行:这里输入的数据将保存为txt中 第二行:保存为文件 </textarea> <button id="save" type="button">保存</button> <script> docume 阅读全文
posted @ 2022-04-12 11:54 怀揣着梦想 阅读(2013) 评论(0) 推荐(0)
摘要: JavaScript的in操作符在**if( in )**语句中 ,用来判断一个属性是否属于一个对象。 var frult = {}; var getFrult = "apple"; if (getFrult in frult) { var nCount = frult[getFrult]; nCo 阅读全文
posted @ 2022-04-12 11:50 怀揣着梦想 阅读(822) 评论(0) 推荐(0)
摘要: String.prototype.substring() substring() 方法返回一个字符串在开始索引到结束索引之间的一个子集, 或从开始索引直到字符串的末尾的一个子集。 语法 str.substring(indexStart[, indexEnd]) 参数 indexStart 需要截取的 阅读全文
posted @ 2022-04-02 15:21 怀揣着梦想 阅读(73) 评论(0) 推荐(0)
摘要: 项目逻辑介绍 用户填运单信息(类似寄快递),所有的信息都填写正确了,在最后提交运单的时候,弹出用 canvas 生产的电子签名画布 出现的问题 提交的签名图片,后端拿到的是空白图片 展示的效果图 canvas-id 写法 点击查看代码 <!-- wxml --> <view class="mask" 阅读全文
posted @ 2022-04-01 16:02 怀揣着梦想 阅读(1018) 评论(0) 推荐(0)