上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: ElementUI 的 Cascader 级联选择器个人觉得很好用,但是对 :options="options" 里的数据格式是有特定要求的:input 框显示的值是 options 里的 label 值。如果 options 的键值对不是 value label ,就需要 props 来配置。 如 阅读全文
posted @ 2019-08-17 16:48 Jaye8584 阅读(21771) 评论(0) 推荐(0) 编辑
摘要: 关于兼容性问题: <a href="xxx.docx" target='_blank'></a> 下载文件时,这种写法是没有兼容性问题;但是下载图片时,IE 上会出现当前页面直接打开图片的问题,即便是加了 target='_blank'。 2019.8.19 更 单个文件批量下载 方法一:H5 <a 阅读全文
posted @ 2019-08-14 15:20 Jaye8584 阅读(24709) 评论(0) 推荐(1) 编辑
摘要: Vue.use() 这种写法可能会页面刷新时自动弹出 message,可将下图红框里换成 Vue.component(Message) 阅读全文
posted @ 2019-08-12 15:54 Jaye8584 阅读(2765) 评论(0) 推荐(2) 编辑
摘要: eslint 对下一行不要校验报错: <div>todo</div> 扩展知识: stylelint 构造及规则 https://blog.csdn.net/sinat_31511831/article/details/54377837 阅读全文
posted @ 2019-08-12 15:52 Jaye8584 阅读(4724) 评论(0) 推荐(0) 编辑
摘要: 如果你不希望用户上传任何类型的文件, 你可以使用 input 的 accept 属性. 设置支持 .doc / .docx / .xls / .xlsx / .pdf 格式: 如果需要支持 .png 等,则在 accept 添加上既可,都逗号分隔。 扩展知识: accept 属性接受一个逗号分隔的 阅读全文
posted @ 2019-08-08 16:42 Jaye8584 阅读(9148) 评论(0) 推荐(0) 编辑
摘要: 使用::nth-child 选择器 tr:nth-child(odd) { background-color: #ccc; } tr:nth-child(even) { background-color: #F9F9F9; } odd 奇数行even 偶数行效果: 阅读全文
posted @ 2019-08-05 14:54 Jaye8584 阅读(3877) 评论(0) 推荐(1) 编辑
摘要: 问题描述: 本地启了两个服务:A(http://localhost:8001) B(http://localhost:8000),A 项目要怎么才能关联到 B 项目,也就是 A 项目请求怎么跳到 B 项目? 解决方法: 用一个代理软件,监听一个端口,把不同的 URL 转发给不同的后端。 1、用 ng 阅读全文
posted @ 2019-07-22 10:24 Jaye8584 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 因项目中使用 coffeeScript (http://coffee-script.org/),此处记录下用 coffeeScript 语法解决 tap 事件触发两次的问题。 在 id="button" 上绑定 tap 触摸事件如下代码: 分析: 在浏览器中点击一次 button 会输出两次 ‘11 阅读全文
posted @ 2019-07-11 17:59 Jaye8584 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: 鼠标不可点击主要是两种表现: 1.鼠标不可点击时的显示状态 cursor: not-allowed 2.禁止触发点击事件 pointer-events:none 阅读全文
posted @ 2019-07-10 11:21 Jaye8584 阅读(11267) 评论(0) 推荐(0) 编辑
摘要: 用python3 manage.py runserver 0.0.0.0:8000命令运行django程序后,通过浏览器访问服务器网址的8000端口,出现访问错误,报错为 Invalid HTTP_HOST header: ‘xxx.xx.xxx.xxx:8000’. You may need to 阅读全文
posted @ 2019-07-10 11:18 Jaye8584 阅读(1500) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页