欢迎访问我的博客,目前从事Machine Learning,欢迎交流
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 25 下一页
摘要: 方法是:如在Authorized.jsx中解决,当未登录成功(包括登录失败和登录验证中),就显示loading,否则继续 加载渲染children 一个三目运算或者if分支就可以解决,但是要写到最先加载的路由页面中,这样一开始加载页面时,才能拦住其他的组件的加载,例如:我的项目一开始就加载鉴权组件A 阅读全文
posted @ 2019-12-12 11:12 有蚊子 阅读(1847) 评论(0) 推荐(0) 编辑
摘要: 如果存在泛型 T ,要创建它的实例,以下方式行不通 public class xxx { privaye E[] data ; public xxx() { data = new E[10] ; } } 换为以下方式可以 public class xxx { privaye E[] data ; p 阅读全文
posted @ 2019-12-01 15:57 有蚊子 阅读(2614) 评论(1) 推荐(0) 编辑
摘要: copy =() => { const dom = document.getElementById(`collect-text-${t.Id}`) const selection = window.getSelection() const range = document.createRange() 阅读全文
posted @ 2019-11-28 16:15 有蚊子 阅读(2719) 评论(0) 推荐(0) 编辑
摘要: http://code.google.com/p/crypto-js/ 阅读全文
posted @ 2019-11-26 17:02 有蚊子 阅读(183) 评论(0) 推荐(0) 编辑
摘要: policy,译为政策,一般是预设的一种限制条件,举个例子 var policyText = { "expiration": "2019-01-01T12:00:00.000Z", //设置该Policy的失效时间,超过这个失效时间之后,就没有办法通过这个policy上传文件了 "condition 阅读全文
posted @ 2019-11-26 16:25 有蚊子 阅读(336) 评论(0) 推荐(0) 编辑
摘要: base64编码 var Base64 = { // private property _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", // public method for encodi 阅读全文
posted @ 2019-11-26 15:49 有蚊子 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 封装如下: indexDBOperate.js export class IndexDBOperate { db = null // 数据库实例 databaseName = null // 数据库名称 version = null // 数据库版本 objStoName = null // 表或对 阅读全文
posted @ 2019-11-21 16:55 有蚊子 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: 我们可以看到是flutter的外部依赖:kotlin-gradle-plugin-1.2.71 下载不了,下面我介绍使用手动下载的方式去解决: 首先,看到flutter项目目录,注意我标出的是运行项目时需要使用的依赖,我们右键选择properties 可以看到该依赖所在磁盘位置,我们手动下载上面的文 阅读全文
posted @ 2019-11-16 14:06 有蚊子 阅读(3737) 评论(0) 推荐(0) 编辑
摘要: 待完善 阅读全文
posted @ 2019-11-12 09:26 有蚊子 阅读(405) 评论(0) 推荐(0) 编辑
摘要: *getTags({ payload }, { call, put }) { const response = yield call(getTags, payload); const arr = response.Data && response.Data.length > 0 ? response 阅读全文
posted @ 2019-11-05 18:10 有蚊子 阅读(301) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 25 下一页