摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-09-10 10:33 五环 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: 更新 prop 在业务中是很常见的需求,但在子组件中不允许直接修改 prop,因为这种做法不符合单向数据流的原则,在开发模式下还会报出警告。因此大多数人会通过 $emit 触发自定义事件,在父组件中接收该事件的传值来更新 prop。 child.vue: export defalut { props 阅读全文
posted @ 2020-08-04 09:45 五环 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1. 介绍一下 js 的数据类型有哪些,值是如何存储的 具体可看我之前的文章:「前端料包」可能是最透彻的JavaScript数据类型详解 JavaScript一共有8种数据类型,其中有7种基本数据类型:Undefined、Null、Boolean、Number、String、Symbol(es6新增 阅读全文
posted @ 2020-08-04 09:20 五环 阅读(522) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-07-23 17:44 五环 阅读(784) 评论(0) 推荐(0) 编辑
摘要: <style> #pionter { width: 20px; height: 20px; background: pink; border-radius: 20px; position: absolute; } </style> <div id="pionter"></div> <script> 阅读全文
posted @ 2020-07-23 16:39 五环 阅读(171) 评论(0) 推荐(0) 编辑
摘要: devServer: { proxy: [ // 例如将'localhost: 8080/api/xxx'代理到'http:www.baidu.com/api/xxx { context: ['/api'], target: 'http:www.baidu.com',//接口域名 changeOri 阅读全文
posted @ 2020-07-23 10:39 五环 阅读(3052) 评论(0) 推荐(0) 编辑
摘要: 公共文件定义css变量,ie不兼容 /* 使用css变量 */ :root{ --bg-color:#fff; --border:1px solid #f6f4f1; } 内页其他css文件就可以这样套用: .demo{background-color: var(--bg-color); borde 阅读全文
posted @ 2020-07-22 11:51 五环 阅读(185) 评论(0) 推荐(0) 编辑
摘要: body,html{ width:100%; height:100%; font-size:14px; } html,body,div,span,object,iframe, h1,h2,h3,h4,h5,h6,p,blockquote,pre, abbr,address,cite,code, de 阅读全文
posted @ 2020-07-22 11:35 五环 阅读(116) 评论(0) 推荐(0) 编辑
摘要: <el-upload action="api_ws/api/Contract/AttachmentUpload" list-type="picture-card" :limit="1" :auto-upload="true" :before-upload="beforeUploadForm" :ht 阅读全文
posted @ 2020-07-22 10:30 五环 阅读(8830) 评论(0) 推荐(1) 编辑
摘要: var resizeTimer = null; window.onresize = function () { if (resizeTimer) clearTimeout(resizeTimer); resizeTimer = setTimeout(function () { console.log 阅读全文
posted @ 2020-07-15 10:17 五环 阅读(427) 评论(0) 推荐(0) 编辑