Skip to content

Instantly share code, notes, and snippets.

View cgfeel's full-sized avatar
😀
working...

快乐的小萌新 cgfeel

😀
working...
  • 米圭
  • 上海
View GitHub Profile
@cgfeel
cgfeel / php注释规范
Created April 16, 2022 11:20 — forked from angusty/php注释规范
php注释规范
#PHP注释规范
##通用注释写法
###一、文件的注释通用样例(普通程序文件,类文件,函数文件,变量定义文件)
```
/**
* XXXXX的文件
*
@cgfeel
cgfeel / deviceStorage.js
Last active February 12, 2019 06:51
React Native 本地存储优化,基于`react-native-storage`,提供:① 缓存数据,定期删除;② 本地没有数据的时候请求远程数据;③ 后台静默更新数据
/**
* 数据存储工具
*/
import Storage from 'react-native-storage';
import {AsyncStorage} from 'react-native';
const storage = new Storage({
// 最大容量,默认值1000条数据循环存储
size: 1000,