04 2017 档案
摘要:1. JSON.stringify({entry_key: 'test', entry_detail: undefined}) 结果 为 "{"entry_key": "test"}" 会将对象里面属性值为undefined的属性去掉; 如果属性值为null,则会保留该属性,属性值为null
阅读全文
摘要:1. 在当前git项目目录下执行 git blame -L 38,38 <filename> 例子: git blame -L 38,38 src/component/BarCode/index.js (index.js中 第38行的提交修改记录)
阅读全文
摘要:1. mac有一个自带的服务器环境, 目录路径 /Library/WebServer/Documents 打开终端 a. 启动 sudo apachectl start b. 重新启动 sudo apachectl restart c. 关闭 sudo apachectl stop (注意: 不使用
阅读全文
摘要:AppState能告诉你当前应用是在前台还是在后台,或者处于切换应用的状态,并且能在状态变化的时候通知你。 AppState 通常在处理推送通知的时候用来决定内容和对应的行为 一: App State ative -- 应用正运行在前台 inactive -- 应用处于手机切换应用的状态 (不会在正
阅读全文
摘要:1. 安装android相关jdk,(https://blog.csdn.net/vvv_110/article/details/72897142) 2. 手机和mac使用usb连接, 手机开发者设置中打开use调试设置, 保证手机和电脑在统一wifi下。 3. 在终端进入到react-native
阅读全文

浙公网安备 33010602011771号