摘要: 在做angular+ionic+cordova项目时,遇到一个小小的问题,就是内容做完,页面无法滚动,导致内容显示不完整 首先我检查了样式,发现并没有给页面定死高度,再次检查结构发现,我并没有用ionic的<ion-content>组件,导致我的内容显示不完整(即页面无法滚动),额,因为最近才开始学 阅读全文
posted @ 2021-08-31 11:12 九零菜菜 阅读(153) 评论(0) 推荐(0)
摘要: 在angular中使用ngModel时出现了一个报错error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'. 只要在app.module.ts中引入FormsModule,然后在@NgModul 阅读全文
posted @ 2021-08-29 22:08 九零菜菜 阅读(155) 评论(0) 推荐(0)
摘要: 前端vue性能提升之Object.freez() Object上有一个数据冻结的方法,被冻结的对象不能对他进行拓展,对冻结的对象进行添加,修改,删除等操作是无效的,但是对象的读取是正常的。看代码: var obj = { name: '张三', age: 18, height: 190 } // 输 阅读全文
posted @ 2021-08-15 09:52 九零菜菜 阅读(291) 评论(0) 推荐(0)
摘要: 使用模块化定义vuex时,出现了这么个错误unknown local mutation type,检查好久发现单词并没有写错,代码如下: // 引入请求数据的方法 import { reqUsers } from "../../api/reqUsers"; // 集中管理的数据 const stat 阅读全文
posted @ 2021-06-17 13:13 九零菜菜 阅读(8064) 评论(0) 推荐(0)
摘要: react配置px转换为vw 1.下载postcss-px-to-viewport插件 npm install postcss-px-to-viewport --save-dev 2.下载craco (ant design中的) npm install @craco/craco 3.在项目根目录创建 阅读全文
posted @ 2021-05-31 21:08 九零菜菜 阅读(1236) 评论(0) 推荐(0)
摘要: react使用插件postcss-pxtorem配置px自动转换rem 1.下载postcss-pxtorem插件 npm install postcss postcss-pxtorem --save-dev 2.下载craco ,进行webpack的配置(ant design中的),或者在webp 阅读全文
posted @ 2021-05-31 21:05 九零菜菜 阅读(2535) 评论(0) 推荐(0)