上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页
摘要: 对null执行typeof预算,结果返回字符串'object',也就是说,可以将null认为是一个特殊的对象值,含义是“非对象“。 例如:用typeof obj ‘object’判断obj是否是一个object 写法一: 写法二: 后者更为严谨 typeof在检测到null时也会显示为object, 阅读全文
posted @ 2019-11-14 11:39 liuw_flexi 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 关键词:Promise Promise.all Promise是什么?=> https://www.runoob.com/w3cnote/es6-promise.html Promise.all 和 Promise.race => https://www.jianshu.com/p/7e60fc1b 阅读全文
posted @ 2019-11-14 11:06 liuw_flexi 阅读(256) 评论(0) 推荐(0) 编辑
摘要: brew reinstall cocoapods brew install ruby brew link --overwrite cocoapods 最近将Mac OS升级到10.15.1 ,再回来初始化rn项目时,卡在Pod处,决定试试指定0.60.0版本初始化 过程参考了: https://gi 阅读全文
posted @ 2019-11-12 16:14 liuw_flexi 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 前端有一个todo app非常适合入门练手 react-native 实现todo app:https://github.com/nwgdegitHub/TODO_RN.git 阅读全文
posted @ 2019-11-12 14:16 liuw_flexi 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 常用插件: react-native-check-box 复选框react-native-sortable-listview 列表拖拽排序 react-native-doc-viewer 预览组件 react-native-img-cache 图片缓存 依赖于react-native-fetch-b 阅读全文
posted @ 2019-11-12 09:26 liuw_flexi 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 新版本中不时从react-native导入了,而是 react-native-async-storage 使用static setItem(key: string, value: string, [callback]: ?(error: ?Error) => void) 方法存储数据时,注意 val 阅读全文
posted @ 2019-11-08 12:00 liuw_flexi 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 因为未读消息是后台存的,当拉取API后,得到未读消息数: 阅读全文
posted @ 2019-11-06 16:52 liuw_flexi 阅读(2276) 评论(0) 推荐(0) 编辑
摘要: 如果是在VC中操作,需要在viewDidLayoutSubviews方法里 - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; CGFloat radius = 36; // 圆角大小 UIRectCorner corner 阅读全文
posted @ 2019-11-06 16:38 liuw_flexi 阅读(1869) 评论(0) 推荐(0) 编辑
摘要: 这个还要取决于手机系统设置 阅读全文
posted @ 2019-10-25 17:03 liuw_flexi 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-25 17:01 liuw_flexi 阅读(512) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页