会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JunviZeng
思考比黄金更可贵。 记住,风筝逆风而飞。
博客园
首页
新随笔
联系
管理
上一页
1
···
6
7
8
9
10
11
12
下一页
2020年3月1日
js常用的正则表达式
摘要: //手机号码格式校验 var regmobile = /^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/; //输入的某个值是否数字 var regNumber = /^[0-9]*$/; //输入的某个值是否
阅读全文
posted @ 2020-03-01 12:18 edczjw
阅读(190)
评论(0)
推荐(0)
2020年2月27日
获取URL地址参数方法
摘要: //获取url参数 getQueryVariable(variable){ var query =decodeURIComponent(window.location.search.substring(1)); var vars = query.split("&"); for (var i=0;i<
阅读全文
posted @ 2020-02-27 18:10 edczjw
阅读(185)
评论(0)
推荐(0)
H5-安卓和ios调用相机和相册
摘要: <input v-if="ipshow" type="file" accept="image/*" name="file1" capture="camera" @change="upload"> <input v-else type="file" accept="image/*" name="fil
阅读全文
posted @ 2020-02-27 18:08 edczjw
阅读(821)
评论(0)
推荐(0)
H5-设置缓存
摘要: <meta http-equiv="Cache-Control"content="no-cache"/> 手机页面通常在第一次加载后会进行缓存,然后每次刷新会使用缓存而不是去重新向服务器发送请求。如果不希望使用缓存可以设置no-cache。
阅读全文
posted @ 2020-02-27 17:47 edczjw
阅读(905)
评论(0)
推荐(0)
H5-设置全屏背景图片样式
摘要: .bgimg{ width: 100%; height: 95vh; margin: 0; padding: 0 .32rem; background-image: url('../image/ld.jpg'); background-repeat: no-repeat; background-si
阅读全文
posted @ 2020-02-27 17:41 edczjw
阅读(2784)
评论(0)
推荐(0)
解决ios手机中input输入框光标过长的问题
摘要: 修改前css部分代码: .receiving-info .receiving-info-list input { display: inline-block; width: 70%; font-size: 14px; color: #333; border: none; outline: none;
阅读全文
posted @ 2020-02-27 17:38 edczjw
阅读(463)
评论(0)
推荐(0)
H5-IOS能否自动弹出软键盘
摘要: 在ios移动端, 弹出软键盘只能 行为事件才能触发 弹出软键盘, 脚本事件是不能触发 弹出软键盘 (行为事件;如点击,触屏等) (脚本事件:如 定时器定时触发)
阅读全文
posted @ 2020-02-27 17:35 edczjw
阅读(1287)
评论(0)
推荐(0)
H5-当你想在出现遮罩的时候,锁住用户的滚动行为,你可以这么做。
摘要: <div class="mask"> <div class="content">我是弹框</div> </div> .mask { position: fixed; top: 0; left: 0; display: flex; justify-content: center; align-item
阅读全文
posted @ 2020-02-27 17:34 edczjw
阅读(382)
评论(0)
推荐(0)
H5---禁止长按
摘要: 以上行为可以总结成这几个(每个手机以及浏览器的表现形式不一样):长按图片保存、长按选择文字、长按链接/手机号/邮箱时呼出菜单。 想要禁止这些浏览器的默认行为,可以使用以下CSS: // 禁止长按图片保存 img { -webkit-touch-callout: none; pointer-event
阅读全文
posted @ 2020-02-27 16:58 edczjw
阅读(1520)
评论(0)
推荐(0)
H5解决active伪类失效---点击后背景效果
摘要: <body ontouchstart></body> 给body注册一个空事件即可😂
阅读全文
posted @ 2020-02-27 16:54 edczjw
阅读(519)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
下一页
公告