问题解决方法记录
1.form 阻止表单的默认提交事件:https://blog.csdn.net/whd526/article/details/78178451
2.vue-cli的移动端适配插件flexible:https://www.cnblogs.com/nanjie/p/8532326.html
3.div元素居中需要注意的几个css样式如下
flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
4.css设置不起作用: 选择器的样式不起作用,检查该属性display是否有做设置
display: inline-block;
5.Blob objectUrl 前端下载大文件
var a = document.createElement('a'); var txt = '.....content....'; for(var i=0;i<200;i++){ txt = txt + txt; } var t = new Blob([txt], {type : 'application/csv'}); a.href=URL.createObjectURL(t) a.download="filename.csv"; a.click();
参考网址:https://www.cnblogs.com/yudis/p/9454167.html
一分辛苦一分才