05 2020 档案

摘要:1.git init //初始git 2.git clone http://xxxx/vosa-element-config.git //克隆项目 3.git remote add origin http:/xxxx/vosa-element-config.git //连接远程项目 4.git br 阅读全文
posted @ 2020-05-29 17:43 青竹玉简 阅读(3572) 评论(0) 推荐(0)
摘要:public class MyApplication extends Application { public static MyApplication INSTANCE; @Override public void onCreate() { super.onCreate(); INSTANCE = 阅读全文
posted @ 2020-05-29 16:06 青竹玉简 阅读(1646) 评论(0) 推荐(0)
摘要:方法一 Intent intent = new Intent(A.this,B.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent 阅读全文
posted @ 2020-05-29 14:33 青竹玉简 阅读(561) 评论(0) 推荐(0)
摘要:vue项目构建 预备 vue中文文档: https://cn.vuejs.org/v2/guide/instance.html 构建工具环境nodejs: http://nodejs.cn 构建工具vue-cli:https://github.com/vuejs/vue-cli 如果是第一次接触vu 阅读全文
posted @ 2020-05-26 16:30 青竹玉简 阅读(3098) 评论(0) 推荐(0)
摘要:一.Mint UI 流行指数:★★★★ Mint UI是 饿了么团队开发基于vue .js的移动端UI框架,它包含丰富的 CSS 和 JS 组件,能够满足日常的移动端开发需要。 官网:https://mint-ui.github.io/#!/zh-cn Github:https://github.c 阅读全文
posted @ 2020-05-26 16:18 青竹玉简 阅读(3905) 评论(0) 推荐(0)
摘要:server { listen 86; server_name localhost; client_max_body_size 500m; location / { proxy_pass http://192.168.1.145:8080; } location ^~ /api { proxy_pa 阅读全文
posted @ 2020-05-22 17:31 青竹玉简 阅读(933) 评论(0) 推荐(0)
摘要:推荐使用 nrmnrm 是一个 js 模块,类似 vue-cli,是一个命令行工具,可以用来快速切换 npm 源。 安装 npm install -g nrm 看看有哪些源供我选择 类似 linux 里的 ls,列出可供选择的源 nrm ls nrm use taobao 这样,就切换到了淘宝的源, 阅读全文
posted @ 2020-05-21 14:55 青竹玉简 阅读(4038) 评论(0) 推荐(0)
摘要:打包部署生产环境之前需要修改配置文件: 修改一:build > utils.js (修改publicPath:"../../" , 这样写是处理打包后找不到静态文件的问题) // Extract CSS when that option is specified // (which is the c 阅读全文
posted @ 2020-05-21 13:57 青竹玉简 阅读(9050) 评论(0) 推荐(0)
摘要:加载组件 1.安装eslint依赖在package.json中用npm安装eslint的依赖 "eslint": "^4.19.1", "eslint-friendly-formatter": "^4.0.1", "eslint-loader": "^2.0.0", "eslint-plugin-h 阅读全文
posted @ 2020-05-18 11:23 青竹玉简 阅读(2628) 评论(0) 推荐(0)
摘要:1. git clone xxx 2.点击红色 选择就行 阅读全文
posted @ 2020-05-14 15:25 青竹玉简 阅读(6322) 评论(0) 推荐(1)
摘要:当使用拦截器获取Response.body.string()后,后面的操作就直接返回Failed了,是因为流只能被使用一次的原因,破解如下 灵感HttpLoggingInterceptor public final class HttpLoggingInterceptor implements In 阅读全文
posted @ 2020-05-12 16:18 青竹玉简 阅读(11436) 评论(0) 推荐(0)
摘要:线程 new Thread(new Runnable() { public void run() { //sleep设置的是时长 Thread.sleep(1000); handler.sendMessage(); } }).start 延时器 TimerTask task = new TimerT 阅读全文
posted @ 2020-05-09 13:52 青竹玉简 阅读(4800) 评论(0) 推荐(1)
摘要:/** * 第一种加载证书 */ try { HttpsUtils.SSLParams sslParams = HttpsUtils.getSslSocketFactory(getAssets().open("wallet.cer")); OkHttpClient builder = new OkH 阅读全文
posted @ 2020-05-09 11:28 青竹玉简 阅读(1421) 评论(0) 推荐(0)
摘要:edit_bg.xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" xmlns:Android="http://schema 阅读全文
posted @ 2020-05-09 10:53 青竹玉简 阅读(219) 评论(0) 推荐(0)
摘要:loading_bg.png dialog_loading.xml <?xml version="1.0" encoding="utf-8"?> <animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" a 阅读全文
posted @ 2020-05-09 10:47 青竹玉简 阅读(344) 评论(0) 推荐(0)
摘要:public class DeviceUtil { /** * 是否有网 * @param context * @return */ public static boolean isNetworkConnected(Context context) { if (context != null) { 阅读全文
posted @ 2020-05-09 10:45 青竹玉简 阅读(314) 评论(0) 推荐(0)
摘要:public class DeviceMacUtil { /** * Android 6.0 之前(不包括6.0) * 必须的权限 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> * @param con 阅读全文
posted @ 2020-05-09 10:43 青竹玉简 阅读(622) 评论(0) 推荐(0)
摘要:public class RegexUtils { /** * 验证Email * @param email email地址,格式:zhangsan@sina.com,zhangsan@xxx.com.cn,xxx代表邮件服务商 * @return 验证成功返回true,验证失败返回false */ 阅读全文
posted @ 2020-05-09 10:42 青竹玉简 阅读(181) 评论(0) 推荐(0)
摘要:public class SharedPreferencesUtil { private static SharedPreferencesUtil util; private static SharedPreferences sp; private SharedPreferencesUtil(Con 阅读全文
posted @ 2020-05-09 10:40 青竹玉简 阅读(858) 评论(0) 推荐(0)
摘要:ViewUtils public class ViewUtils { /** * @Author AlanMa * @Description 处理图形大小 * @Date 2020/4/14 * @Param [editTextList] * @return void */ public stati 阅读全文
posted @ 2020-05-09 10:39 青竹玉简 阅读(778) 评论(0) 推荐(0)
摘要:CountDownTimerUtils public class CountDownTimerUtils extends CountDownTimer { private TextView mTextView; public CountDownTimerUtils(TextView textView 阅读全文
posted @ 2020-05-09 10:38 青竹玉简 阅读(193) 评论(0) 推荐(0)
摘要:EditTextUtils public class EditTextUtils { /** * 设置edittext只能输入小数点后两位 */ public static void afterDotOne(final EditText editText) { editText.addTextCha 阅读全文
posted @ 2020-05-09 10:36 青竹玉简 阅读(339) 评论(0) 推荐(0)