原创 一個js實現銀行卡號*格式化方法的演變

需求 6225123412341231234 格式化成 6225 **** **** *** 1234 實現 實現1 manglingFormatCardNumber = cardNumber => { if (card

原创 JS有用的東西記錄

Debouncing and Throttling Explained Through Examples https://css-tricks.com/debouncing-throttling-explained-examples/

原创 react-native-firebase FCM 發送通知

https://rnfirebase.io/docs/v4.3.x/installation/initial-setup https://rnfirebase.io/docs/v4.3.x/messaging/android

原创 React Native 調試相關

訪問App內的開發菜單 真機:shake device.搖晃設備調出.注意版本限制,如低版本android不支持。 模擬器:IOS:iPhone模擬器使用Command+D快捷鍵 Android:Android

原创 ReactNative js 漢字轉拼音

使用這個項目 https://github.com/sxei/pinyinjs. 因爲我RN項目暫時只需要首字母縮寫,所以修改使用以下代碼,減小包大小. /** * https://github.com/sxei/pinyinjs

原创 仿微信多圖片選擇、預覽、手勢處理

https://github.com/wangluu/PicSelect 因爲覺得網上其他的仿微信圖片選擇都不夠好,特別是手勢處理,大圖查看時,稍微放大圖片,再左滑右滑效果很不理想,所以我自己做了一個。 (Gif太麻煩了,截幾張圖

原创 Solr6.6總結(二)功能測試

基於上一篇的環境http://blog.csdn.net/u011562187/article/details/77720975 今天也做了很多solr在PHP下的測試,學到不少東西。先把昨天java測試環境說一下,再說PHP的。 sol

原创 Android Studio Gradle 設置代理 socks5

公司環境下,公司有自己的maven respository,項目又需要依賴一些被牆的,或者下載很慢的,gradle需要設置自己的代理. 使用AS settings中的proxy設置不太好用.AS設置 socks5 也有問題,SOCKS5代

原创 IOS 真機 dyld: Library not loaded 錯誤Crash

剛剛開始看IOS,編譯一個現存項目,模擬器OK,真機 archive打包 crash.搜索了衆多解決方案,百度上的太坑了,找不到適合我的,像說什麼把 Targets -> Build Phases ->Link Binary With L

原创 react-native 升級.Error: While resolving module react-native-vector-icons

我的環境: react 16.0.0 react-native 50.0.3 升級爲當前最新版: react 16.2.0 react-native 53.0.0 升級部分可按中文官網教程進行, 1.npm info react-

原创 android 7.0 8.0 安裝apk適配 FileUriExposedException

public static void installApk(Context context, File file) { Intent intent = new Intent(Intent.ACTION_VIEW);

原创 Mac linux 設置環境變量

Mac下面的環境變量設置和Linux差不多,一般爲這幾個文件(左邊的先加載): /etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc etc目

原创 TortoiseSVN的bin目錄下面沒有svn.exe

原文:http://www.cnblogs.com/admln/p/5820844.html 之所以沒有,是因爲安裝TortoiseSVN的實話沒有勾選指定安裝項。 找到安裝包重新運行,選擇modify,然後勾選command lin

原创 Node.js 使用xml2js處理xml

(Mac環境) https://github.com/Leonidas-from-XIV/node-xml2js Mac 沒有ll命令 $vim ~/.bash_profile //編輯文件 I //插入 alias ll='ls -al

原创 Sourcetree 更新git賬號密碼

公司的gitlab,定期要求更改密碼,更改後Macbook 下Sourcetree(2.7)需要更新密碼。 網上其他答案都不能解決我的問題,除了下面這個: https://community.atlassian.com/t5/Source