会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dailyStudy
博客园
首页
新随笔
联系
订阅
管理
2022年10月19日
微信小程序自定义步骤条
摘要: 左侧竖线高度自适应 第一种方案: <!--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)
2022年8月29日
微信小程序自定义picker触发区域
摘要: <!-- wxml --> <picker bindchange="changePicker" value="{{i}}" range="{{list}}"> <!-- 注意这一层不能少,否则弹性布局失效 --> <view class="jcsb"> <view class="picker-val
阅读全文
posted @ 2022-08-29 14:58 怀揣着梦想
阅读(467)
评论(0)
推荐(0)
2022年8月19日
验证邮编
摘要: ###规则 台湾: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)
2022年8月3日
新密码验证
摘要: 新密码规则 至少有一位大写字母,小写字母,数字和特殊字符,不能输中文和空格 // (?![0-9]+$) 表示不能为纯数字 // (?![a-z]+$)(?![A-Z]+) 表示不能为纯大/小写字母 // (?!([^(0-9a-zA-Z)])+$) 表示不能为除数字和字母外的纯特殊符号 // (?
阅读全文
posted @ 2022-08-03 11:57 怀揣着梦想
阅读(267)
评论(0)
推荐(0)
2022年6月2日
微信小程序自定义弹窗,实现底部弹出动画
摘要: 使用到: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)
2022年4月12日
使用 new Blob() 将文本框数据保存为 txt文件
摘要: <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 if(in) 用法
摘要: 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)
2022年4月2日
javascript 字符串方法substring()和substr()区别
摘要: String.prototype.substring() substring() 方法返回一个字符串在开始索引到结束索引之间的一个子集, 或从开始索引直到字符串的末尾的一个子集。 语法 str.substring(indexStart[, indexEnd]) 参数 indexStart 需要截取的
阅读全文
posted @ 2022-04-02 15:21 怀揣着梦想
阅读(73)
评论(0)
推荐(0)
2022年4月1日
微信小程序 canvas-id 改成 canvas 2d
摘要: 项目逻辑介绍 用户填运单信息(类似寄快递),所有的信息都填写正确了,在最后提交运单的时候,弹出用 canvas 生产的电子签名画布 出现的问题 提交的签名图片,后端拿到的是空白图片 展示的效果图 canvas-id 写法 点击查看代码 <!-- wxml --> <view class="mask"
阅读全文
posted @ 2022-04-01 16:02 怀揣着梦想
阅读(1018)
评论(0)
推荐(0)
公告