会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
林逸夫
博客园
首页
新随笔
联系
订阅
管理
2023年6月20日
vue3+vite 动态引用静态资源,动态引入assets文件夹图片的几种方式
摘要: 可以参考这个回答,亲测有用 https://blog.csdn.net/weixin_43743175/article/details/125892613
阅读全文
posted @ 2023-06-20 16:39 林逸夫
阅读(632)
评论(0)
推荐(0)
2023年4月27日
JavaScript把数字转为汉字数字的function
摘要: function numberToChinese (num) { var digits = [ "", "一", "二", "三", "四", "五", "六", "七", "八", "九" ]; var units = ["", "十", "百", "千", "万"]; var chineseNu
阅读全文
posted @ 2023-04-27 11:18 林逸夫
阅读(61)
评论(0)
推荐(0)
2022年12月23日
定位写竖线
摘要: .grid { position: relative; &:first-child::before { content: ''; width: 1px; //边框宽度 height: 100px; //边框长度 position: absolute; right: 0; //设置为右边框 top:
阅读全文
posted @ 2022-12-23 18:59 林逸夫
阅读(24)
评论(0)
推荐(0)
2022年12月22日
样式调节
摘要: :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 林逸夫
阅读(17)
评论(0)
推荐(0)
2022年11月23日
解决在Vue3中html2canvas图片跨域问题
摘要: <div v-html="transformImg(textContent.policyInterpretation)" class="topicContent"></div> const transformImg = (str) => { const replaceCallback = (m, g
阅读全文
posted @ 2022-11-23 10:21 林逸夫
阅读(2614)
评论(0)
推荐(0)
2022年8月10日
做后台实际开发项目中遇到的屏幕适配和标签初始化
摘要: 项目的技术栈是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 林逸夫
阅读(99)
评论(0)
推荐(0)
2022年6月19日
vue项目中本地开发测试使用vue.config.js解决跨域问题
摘要: 本文章只讲述 前端解决跨域的办法,并且前端解决跨域问题只在本地开发时有效,项目发布线上需要前端服务器配置请求代理比如 nginx的反向代理 或 后端允许跨域请求 解决跨域的方法就是“欺骗”浏览器 或 删除浏览器限制
阅读全文
posted @ 2022-06-19 19:51 林逸夫
阅读(198)
评论(0)
推荐(0)
2022年5月23日
webpack.config.js和vue.config.js的区别
摘要: webpack.config.js是webpack的配置文件,所有使用webpack作为打包工具的项目都可以使用,vue的项目可以使用,react的项目也可以使用。 vue.config.js是vue项目的配置文件,专用于vue项目。通过vue.config.js中常用功能的配置,简化了配置工作,当
阅读全文
posted @ 2022-05-23 15:29 林逸夫
阅读(359)
评论(0)
推荐(0)
2022年5月21日
项目下载依赖后面加 -S -D -g 分别代表什么意思
摘要: npm install name -S此依赖是在package的dependencies中,不仅在开发中,也在打包上线后的生产环境中,比如vue npm install name -D此依赖是在package的devDependencies 中,只在开发中用,上线不需要 比如babel npm in
阅读全文
posted @ 2022-05-21 15:50 林逸夫
阅读(111)
评论(0)
推荐(0)
Vue项目中的接口进阶使用
摘要: 创建services文件夹 1.文件夹apis、index、request的三个文件。 2.apis文件放接口 export const apis = { checkDeviceNo: '/api/client/getEquipmentCode',//检查设备码是否存在 getSystemInfo:
阅读全文
posted @ 2022-05-21 14:02 林逸夫
阅读(206)
评论(0)
推荐(0)
下一页
公告