09 2020 档案

react-keep-alive
摘要:https://github.com/StructureBuilder/react-keep-alive/blob/master/README.zh-CN.md 安装 npm install --save react-keep-alive 使用 import React from 'react'; 阅读全文

posted @ 2020-09-23 17:57 秃了头也不退休 阅读(4125) 评论(0) 推荐(0)

create-react-app 兼容 ie9
摘要:yarn add react-app-polyfill core-js 在index.js import 'react-app-polyfill/ie9';//兼容ie9 import 'react-app-polyfill/stable'; import "core-js/es/map" impo 阅读全文

posted @ 2020-09-23 15:35 秃了头也不退休 阅读(499) 评论(0) 推荐(0)

next-定义路由
摘要:在next.config.js里写 const withCss = require('@zeit/next-css') if(typeof require !== 'undefined'){ require.extensions['.css']=file=>{} } module.exports = 阅读全文

posted @ 2020-09-02 17:09 秃了头也不退休 阅读(375) 评论(0) 推荐(0)

next-支持css样式和按需加载antd
摘要:yarn add @zeit/next-css 在blog根目录下,新建一个next.config.js文件。这个就是Next.js的总配置文件。写入下面的代码: const withCss = require('@zeit/next-css') if(typeof require !== 'und 阅读全文

posted @ 2020-09-02 11:28 秃了头也不退休 阅读(1000) 评论(0) 推荐(0)

react-错误边界
摘要:使用 阅读全文

posted @ 2020-09-02 10:54 秃了头也不退休 阅读(141) 评论(0) 推荐(0)

vue3-异步加载/延迟动画
摘要:1.在setup方法前添加async 2.新建延迟函数 3.在数据展示前添加延迟函数 4.在添加组件区域添加Suspense 有点像react中的Suspense 5.Progress.vue 阅读全文

posted @ 2020-09-01 16:03 秃了头也不退休 阅读(1663) 评论(0) 推荐(1)

vue3-setup 的参数
摘要:<template> <div id="app"> <p>姓名:{{name}}</p> <p> <button @click="changeAge(-1)">-</button> 年龄:{{age}} <button @click="changeAge(1)">+</button> </p> <p 阅读全文

posted @ 2020-09-01 11:23 秃了头也不退休 阅读(9174) 评论(0) 推荐(0)

vue3-reactive(响应式对象)和toRefs
摘要:<template> <div id="app"> <p>姓名:{{name}}</p> <p> <button @click="changeAge(-1)">-</button> 年龄:{{age}} <button @click="changeAge(1)">+</button> </p> <p 阅读全文

posted @ 2020-09-01 11:17 秃了头也不退休 阅读(11016) 评论(1) 推荐(2)

vue3-setter/getter和计算属性
摘要:<template> <div id="app"> <p>姓名:{{name}}</p> <p> <button @click="changeAge(-1)">-</button> 年龄:{{age}} <button @click="changeAge(1)">+</button> </p> <p 阅读全文

posted @ 2020-09-01 11:06 秃了头也不退休 阅读(1440) 评论(0) 推荐(0)

vue3-setup(引用和方法)
摘要:setUp函数 使用Composition API 的入口 在beforeCreate之前调用 在setup中没有this 返回对象中的属性刻在模板中使用 <template> <div id="app"> {{name}} <p>{{age}}</p> <button @click="plusOn 阅读全文

posted @ 2020-09-01 10:39 秃了头也不退休 阅读(41231) 评论(0) 推荐(0)

导航