- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 css图片占位
img{position: relative;display:inline-block;width:30px;height:30px;}img:after{content: "";height: 100%;width: 100%;position: absolute;left: 0;top: 0;background: url('image/nu...
2019-05-15 16:46:26
1358
原创 css3的一个“加载中”例子
HTML部分:<div class="upwarp " > <p class="upwarp-progress upwarp-rotate"></p> <p class="upwarp-tip">加载中..</p></div>CSS部分:.upwarp{min-height: 30px;...
2019-05-15 16:14:45
333
原创 vue之You may use special comments to disable some warnings.
build下的webpack.base.conf.js里边,注释掉module里边的rules的第一行...(config.dev.useEslint ? [createLintingRule()] : []),
2019-05-07 09:34:41
304
原创 js判断是否长按某按键
onkeydown="TestKeyDown(event);"//判断是否长按某按键varlastkeyCode =-1;functionTestKeyDown(event) {if(event.keyCode ==lastkeyCode) { //长按的处理}lastkeyCode =event.keyCode;}...
2019-05-05 10:08:51
2578
原创 js接收并处理上一个页面通过URL传过来的对象
//js接收并处理通过URL传过来的对象varquery =window.location.search;query =decodeURI(query);varobj=query.match(/\{[^\}]+\}/)[0];obj=obj.replace(/%3A/g,':');obj=JSON.parse(obj);...
2019-05-05 10:02:42
1205
原创 js将毫秒转换为年月日时分秒
//将毫秒转换为年月日时分秒date=new Date(ms*1000).Format("yyyy-MM-dd hh:mm:ss");Ms=newMs=neMs=newDate(obj[i].send_time*1000).Format("yyyy-MM-dd hh:mm:ss");wDate(obj[i].send_time*1000).Format("yyyy-MM-dd hh:...
2019-05-05 09:56:46
3041
原创 js接收前一个页面传过来的值
第二个页面取第一个页面传来的值function getQueryString(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match(reg); if (r != n...
2019-05-05 09:52:04
1948
原创 前端实现聊天对话框页面
HTML部分<!dtype html><html><head><meta charset="utf-8"><title>与客服1聊天中</title><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum...
2018-12-17 16:25:36
25250
2
转载 JavaScript表单简单校验
<script>function checkForm(){var uValue=document.getElementById("user").value;/*alert(uValue);*//*检验是否获取到了值,之后可以屏蔽掉*/if(uValue==""){ /*这里注意,不是null*///给出错误提示alert("用户名不能为空");return fal...
2018-07-15 16:40:39
275
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人