会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yaqian96
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2021年1月8日
flex:1详解
摘要: flex布局中的flex >flex-grow、flex-shrink、flex-basic的缩写flex:none >flex:0 0 auto flex:auto >flex:1 1 auto 假设以上三个属性同样取默认值,则flex的默认值为0 1 auto。 1.flex取三个值时, .it
阅读全文
posted @ 2021-01-08 11:53 yaqian96
阅读(746)
评论(0)
推荐(0)
2021年1月5日
vue3的新知识点
摘要: 一、初入门 通过CDN <script src="https://unpkg.com/vue@next"></script> 通过脚手架Vite 或者vue-cli搭建 npm init vite-app hello-vue3 # OR yarn create vite-app hello-vue3
阅读全文
posted @ 2021-01-05 17:59 yaqian96
阅读(945)
评论(0)
推荐(0)
2020年12月28日
手动书写async、await
摘要: async后边返回一个promise,await后边也返回一个promise。 async是generator函数的语法糖。 function asyncToGenerator(generatorFunc) { // 返回的是一个新的函数 return function() { // 先调用gene
阅读全文
posted @ 2020-12-28 17:48 yaqian96
阅读(108)
评论(0)
推荐(0)
手写promise
摘要: Promise 对象是用来处理异步操作的工具,解决开发者对异步回调的烦恼。 极简版 class Defer{ succeed = null fail = null state = 'pending' constructor(fn) { fn(this.resolve.bind(this), this
阅读全文
posted @ 2020-12-28 16:37 yaqian96
阅读(130)
评论(0)
推荐(0)
2020年12月21日
vue中使用ref 、页面的强制刷新(所有的)、路由刷新之后,query传递数组时,会报错[object object]
摘要: 一、 ref 被用来给元素或子组件注册引用信息。引用信息将会注册在父组件的 $refs 对象上。 如果在普通的 DOM 元素上使用,引用指向的就是 DOM 元素; 如果用在子组件上,引用就指向组件实例: 关于 ref 注册时间的重要说明:因为 ref 本身是作为渲染结果被创建的,在初始渲染的时候你不
阅读全文
posted @ 2020-12-21 18:12 yaqian96
阅读(2266)
评论(0)
推荐(0)
2020年11月3日
react-native中使用react navigation
摘要: 导航的代码 import React,{PureComponent,Component}from 'react'; import { StatusBar } from 'react-native' import {Button,Image} from 'react-native'; import {
阅读全文
posted @ 2020-11-03 15:16 yaqian96
阅读(149)
评论(0)
推荐(0)
2020年10月30日
安装react native的环境遇到的问题
摘要: 参考https://blog.csdn.net/weixin_45851208/article/details/107091930 按照官网统一配置 1.android studio出现download components一直下载很慢 解决方法:https://www.jianshu.com/p/
阅读全文
posted @ 2020-10-30 13:39 yaqian96
阅读(128)
评论(0)
推荐(0)
2020年10月27日
npm install express -g的问题
摘要: C:\Users\lian_>npm install express -g npm ERR! code EPERM npm ERR! syscall mkdir npm ERR! path C:\Program Files\nodejs\node_cache\_cacache npm ERR! er
阅读全文
posted @ 2020-10-27 13:06 yaqian96
阅读(2945)
评论(1)
推荐(1)
2020年10月26日
面试总结
摘要: 一、JS 1. js的数据类型,简单类型和引用类型 8种:null、undefined、Number、String、Boolean、object、symbol、bigInt(指安全存储、操作大整数) 基础类型包括:number,string,null,undefined,Boolean,symbol
阅读全文
posted @ 2020-10-26 14:47 yaqian96
阅读(64)
评论(0)
推荐(0)
2020年9月23日
面试总结9.23
摘要: 1、setTimeout console.log('script start') //1. 打印 script start setTimeout(function(){ console.log('settimeout') // 4. 打印 settimeout }) // 2. 调用 setTime
阅读全文
posted @ 2020-09-23 16:13 yaqian96
阅读(17)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告