- 博客(3)
- 收藏
- 关注
原创 TypeError: res.forEach is not a function解决报错
原因是使用foreach()方法用过遍历的应该是数组才对,所以使用。()方法将遍历对象转化为数组。解决办法:加一行代码。
2023-03-25 11:00:16
12592
原创 Vue3引入使用element-plus
第一步 安装 npm install -D element-plus 第二步 在main.js中引入 import ElementPlus from 'element-plus'; import 'element-plus/dist/index.css'; 第三步 在babel.config.js中配置 module.exports = { presets: [ '@vue/cli-plugin-babel/preset' ], plugins: [ [ .
2022-05-21 15:58:37
1925
1
原创 Vue中html全屏背景色(height:100%不能生效时)
有以下两种方法 1、把百分比符号换成“vh”(推荐) .box { height: 100vh; background-color: rgb(44, 88, 233); } 2、在全局样式表common.css(自己起名字)中设置#app的高度为100%,再在所需页面设置#app的背景颜色 common.css中: html, body, #app{ height: 100%; margin: 0; padding: 0; } 组件中: #app { bac.
2022-05-21 15:12:32
3050
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅