- 博客(3)
- 收藏
- 关注
原创 前端大数字导致的数据请求错误
前端大数字导致的数据请求错误 最佳解决方案: 后端修改接口将数字类型转化为字符串类型 前端方案: // 下载并使用第三方包 json-bigint 可以解决大数字问题 // npm run serve # yarn add amfe-flexible npm i json-bigint // 在组件中倒入并使用 import jsonbig from 'json-bigint' const request = axios.create({ baseURL: 'http://xxxxxxxxxxxx
2021-04-21 13:31:26
408
原创 移动端初始化
移动端 REM 适配 Vant 中的样式默认使用 px 作为单位,如果需要使用 rem 单位,推荐使用以下两个工具: postcss-pxtorem 是一款 postcss 插件,用于将单位转化为 rem lib-flexible 用于设置 rem 基准值 下面我们分别将这两个工具配置到项目中完成 REM 适配。 一、使用 lib-flexible 动态设置 REM 基准值(html 标签的字体大小) 1、安装 # yarn add amfe-flexible npm i amfe-flexible
2021-04-21 11:37:14
458
原创 vs code 背景图片修改
vs code 背景图片修改 在初始位置添加一下代码 body { background-image: url('file:///C:/Users/Administrator/Pictures/Camera Roll/beijing.jpg'); background-size: 1920ox 1080px; opacity: 0.75; background-repeat: no-repeat; }
2021-01-05 15:48:13
209
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅