会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
会醉的鸟
博客园
首页
新随笔
联系
订阅
管理
2018年6月27日
input file 上传问题
摘要: <input type="file" accept=".png,jpg" multiple="multiple"/> 由于input type=file 样式太过丑陋,一般常用都是用<div>选择上传</div>覆盖原有的input,同时把input定位到div上面,透明度设为0,就可以达到以假乱真
阅读全文
posted @ 2018-06-27 10:47 会醉的鸟
阅读(599)
评论(0)
推荐(0)
2018年3月27日
Ajax(XMLHttpRequest对象)
摘要: let xml = new XMLHttpRequest() | new ActiveXObject("Miscrosoft.XMLHTTP") //创建XMLHttpRequest()对象 //get xml.open('get','/login?name=lisi&pass=123456',tr
阅读全文
posted @ 2018-03-27 14:42 会醉的鸟
阅读(117)
评论(0)
推荐(0)
2018年3月16日
vue 路由问题
摘要: 路由跳转: { name:user, path: '/user/:id', components: user } 1.this.$router.push('/user') => 可以带在路由已经定义的参数 => this.$router.push('/user/id'+id) 2.this.$rou
阅读全文
posted @ 2018-03-16 16:10 会醉的鸟
阅读(120)
评论(0)
推荐(0)
for()里面嵌套setTimeout
摘要: for(var i = 0 ; i < 5 ; i ++ ) { setTimeout (()=> { console.log(i) }) console.log(i)} 输出的是: 0,1,2,3,4, 5个5 原因:因为JavaScript是单线程执行的,所以会先执行后面的console.log
阅读全文
posted @ 2018-03-16 15:42 会醉的鸟
阅读(304)
评论(0)
推荐(0)
公告