上一页 1 2 3 4 5 6 ··· 12 下一页

2020年9月23日

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 秃了头也不退休 阅读(4004) 评论(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 秃了头也不退休 阅读(496) 评论(0) 推荐(0) 编辑

2020年9月2日

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 秃了头也不退休 阅读(368) 评论(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 秃了头也不退休 阅读(939) 评论(0) 推荐(0) 编辑

react-错误边界

摘要: 使用 阅读全文

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

2020年9月1日

vue3-异步加载/延迟动画

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

posted @ 2020-09-01 16:03 秃了头也不退休 阅读(1610) 评论(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 秃了头也不退休 阅读(9169) 评论(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 秃了头也不退休 阅读(10990) 评论(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 秃了头也不退休 阅读(1406) 评论(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 秃了头也不退休 阅读(41154) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 12 下一页

导航