混合APP(React+H5)中iOS原生给JS传图片
Welcome to my blog, enter password to read.
1 | function b64toBlob(b64Data, contentType = '', sliceSize = 512) { |
1 | function base64toBlob(b64Data, contentType = '') { |
1 | @interface BaseViewController ()<UIGestureRecognizerDelegate> |
viewDidLoad
方法中设置手势并禁用系统滑动手势1 | - (void)viewDidLoad { |
1 | git log --author="username" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' - |
1 | git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done |