摘要: 可以参考这个回答,亲测有用 https://blog.csdn.net/weixin_43743175/article/details/125892613 阅读全文
posted @ 2023-06-20 16:39 林逸夫 阅读(552) 评论(0) 推荐(0) 编辑
摘要: function numberToChinese (num) { var digits = [ "", "一", "二", "三", "四", "五", "六", "七", "八", "九" ]; var units = ["", "十", "百", "千", "万"]; var chineseNu 阅读全文
posted @ 2023-04-27 11:18 林逸夫 阅读(43) 评论(0) 推荐(0) 编辑
摘要: .grid { position: relative; &:first-child::before { content: ''; width: 1px; //边框宽度 height: 100px; //边框长度 position: absolute; right: 0; //设置为右边框 top: 阅读全文
posted @ 2022-12-23 18:59 林逸夫 阅读(19) 评论(0) 推荐(0) 编辑
摘要: :deep(.el-tabs--card>.el-tabs__header) { border: 1px solid transparent; margin-left: -1px; .el-tabs__nav { border-top: 1px solid #D2D7E1; border-left: 阅读全文
posted @ 2022-12-22 18:51 林逸夫 阅读(12) 评论(0) 推荐(0) 编辑
摘要: <div v-html="transformImg(textContent.policyInterpretation)" class="topicContent"></div> const transformImg = (str) => { const replaceCallback = (m, g 阅读全文
posted @ 2022-11-23 10:21 林逸夫 阅读(2481) 评论(0) 推荐(0) 编辑
摘要: 项目的技术栈是vue+typescript+elementUi 在app.vue 初始化 /* 清除内外边距 */ body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, fieldset, leng 阅读全文
posted @ 2022-08-10 16:08 林逸夫 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 本文章只讲述 前端解决跨域的办法,并且前端解决跨域问题只在本地开发时有效,项目发布线上需要前端服务器配置请求代理比如 nginx的反向代理 或 后端允许跨域请求 解决跨域的方法就是“欺骗”浏览器 或 删除浏览器限制 阅读全文
posted @ 2022-06-19 19:51 林逸夫 阅读(190) 评论(0) 推荐(0) 编辑
摘要: webpack.config.js是webpack的配置文件,所有使用webpack作为打包工具的项目都可以使用,vue的项目可以使用,react的项目也可以使用。 vue.config.js是vue项目的配置文件,专用于vue项目。通过vue.config.js中常用功能的配置,简化了配置工作,当 阅读全文
posted @ 2022-05-23 15:29 林逸夫 阅读(348) 评论(0) 推荐(0) 编辑
摘要: npm install name -S此依赖是在package的dependencies中,不仅在开发中,也在打包上线后的生产环境中,比如vue npm install name -D此依赖是在package的devDependencies 中,只在开发中用,上线不需要 比如babel npm in 阅读全文
posted @ 2022-05-21 15:50 林逸夫 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 创建services文件夹 1.文件夹apis、index、request的三个文件。 2.apis文件放接口 export const apis = { checkDeviceNo: '/api/client/getEquipmentCode',//检查设备码是否存在 getSystemInfo: 阅读全文
posted @ 2022-05-21 14:02 林逸夫 阅读(195) 评论(0) 推荐(0) 编辑