08 2020 档案

摘要:h5中存在window即可通过如下方法: window.btoa() // 编码 window.atob() // 解码 rn中window下不存在上面两种方法,所以我们需要通过其他方式,Base64编解码算法在Nodejs的buffer组件中有支持,使用方式如下: // 安装 npm instal 阅读全文
posted @ 2020-08-18 09:58 Marphy 阅读(691) 评论(0) 推荐(0)
摘要:React style支持数组语法糖探究 ​使用react-native,挖土填坑,下一脚还是继续踩坑。踩坑之余也发现了和react不同之处,或可称之为小亮点。话说三句不能离代码,请赏下文: class demo extends Component { render() { const btnTex 阅读全文
posted @ 2020-08-13 23:53 Marphy 阅读(1458) 评论(0) 推荐(0)
摘要:reactNative 业务中气泡常用三角写法: <View style={styles.arrow}> </View> arrow: { width: getRpx(30), height: getRpx(30), borderWidth: getRpx(15), borderTopColor: 阅读全文
posted @ 2020-08-05 16:35 Marphy 阅读(1104) 评论(0) 推荐(0)