摘要: <input type="file" accept=".png,jpg" multiple="multiple"/> 由于input type=file 样式太过丑陋,一般常用都是用<div>选择上传</div>覆盖原有的input,同时把input定位到div上面,透明度设为0,就可以达到以假乱真 阅读全文
posted @ 2018-06-27 10:47 会醉的鸟 阅读(595) 评论(0) 推荐(0)
摘要: 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 会醉的鸟 阅读(114) 评论(0) 推荐(0)
摘要: 路由跳转: { 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 会醉的鸟 阅读(118) 评论(0) 推荐(0)
摘要: 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 会醉的鸟 阅读(302) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示