// npm官方镜像 npm config set registry=http://registry.npmjs.org // 亚马逊S3 host 219.76.4.4 github-cloud.s3.amazonaws.com
// 修改gitingonre后重新版本控制 git rm -r --cached . git add .
// .npmrc各种国内镜像 registry=https://registry.npm.taobao.org disturl=https://npm.taobao.org/dist chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver operadriver_cdnurl=http://cdn.npm.taobao.org/dist/operadriver phantomjs_cdnurl=http://cdn.npm.taobao.org/dist/phantomjs fse_binary_host_mirror=https://npm.taobao.org/mirrors/fsevents sass_binary_site=http://cdn.npm.taobao.org/dist/node-sass electron_mirror=http://cdn.npm.taobao.org/dist/electron/
// Prettier configuration // https://prettier.io/docs/en/configuration.html module.exports = { singleQuote: true, trailingComma: 'all', jsxBracketSameLine: true, arrowParens: 'always' };
// 杀死对应包的后台进程 adb shell am kill [packageName] // 查询所有包名 adb shell pm list packages // 查询所有包名对应的apk名字 adb shell pm list packages -f
// 汉字与Unicode转码 function toUnicode(data) { if(data == '') return ''; var str =''; for(var i=0;i<data.length;i++) { str+="\u"+parseInt(data[i].charCodeAt(0),10).toString(16); } return str; } function toChinese(data) { if(data == '') return ''; data = data.split("u"); var str =''; for(var i=0;i<data.length;i++) { str+=String.fromCharCode(parseInt(data[i],16).toString(10)); } return str; }