2020年

背景

ios12月份前需使用WkWebview才能更新app,否则不予上架,所以之前的cordova版本需要升级。

调整步骤:
1.安装插件
cordova plugin add cordova-plugin-wkwebview-file-xhr
参考链接:
https://www.npmjs.com/package/cordova-plugin-wkwebview-file-xhr
2.搜索cordova关键字createConfigurationFromSettings添加下方代码
Cordova6.0后,WK插件就被移除了,兼容到Cordova内部中,所以我在升级后的Cordva中搜索createConfigurationFromSettings 方法,在其内部增加代码

//在return上面添加下面两行代码
      [configuration.preferences setValue:@YES forKey:@"allowFileAccessFromFileURLs"];
      [configuration setValue:@YES forKey:@"_allowUniversalAccessFromFileURLs"];
      return configuration;

3.避免走的坑
白名单默认都安装了,不需要卸载重新安装。以下配置不需要添加到config.xml中。当然视版本不同,可能会有不同的情况,大家根据需要配置调整。

<allow-navigation href="*" />

<preference name="scheme" value="app" />
<preference name="hostname" value="localhost" />

<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

参考链接:

https://cordova.apache.org/announcements/2020/08/31/cordova-ios-6.1.1.html
https://www.jianshu.com/p/69d749f12636
https://github.com/oracle/cordova-plugin-wkwebview-file-xhr
https://stackoverflow.com/questions/39361771/wkwebview-origin-null-is-not-allowed-by-access-control-allow-origin
https://stackoverflow.com/questions/36000757/cordova-ios-error-origin-null-is-not-allowed-by-access-control-allow-origin

腾讯微信官方号“微信派”表示,今天起,微信可以发“超链接”了。

在聊天界面输入#内容 ,三言两语就能带上新闻、天气、公交、医院、股价、明星、影视综艺、星座、油价、快递等各类话题信息,点击直达内容聚合页。

微信超链接#

点击上方的链接

微信超链接#

除了通过“超链接” 直接使用服务或进入相应的品牌官方区;通过“特定语法”,聊天时还可以做到直达精准结果。语法有三:

▌ #小程序:小程序名称
▌ #公众号:公众号名称
▌ #视频号:视频号名称
目前,升级至微信最新版本即可使用该功能。新版本正在逐步覆盖中,请耐心等待。

谷歌今天发布了 Chrome 87 正式版,谷歌称此次更新是多年来 Chrome 浏览器性能的最大提升。

Chrome 87 released

新的 Chrome 更新还通过更好地管理资源的标签节流,降低 CPU 使用率,从而提高性能。非活动标签不再频繁地唤醒 CPU,增加电池续航,因此 Chrome 的 CPU 占用率是之前的1/5,电池续航提高了 1.25 小时。

谷歌表示,Chrome 的启动速度最高可提高 25%,加载页面的速度最高可提高 7%。

安卓版 Chrome 浏览器的性能也将得到提升。谷歌表示,当向后和向前移动时,页面将 “几乎瞬间”加载,该公司将在 Chrome 87 中逐步推出后退 / 前进缓存功能。

还有新的 Chrome 动作,让删除浏览器历史记录等任务可以从地址栏完成(只需输入删除我的历史记录之类的内容),还有一个新的功能,用于搜索你打开的标签页。在不久的将来,谷歌计划在 Chrome 中加入卡牌功能,可以帮助你回到最近访问过的和相关的内容。

macOS 版 Chrome 87 还更新了图标,现在,Chrome 浏览器的图标背后采用了白色背景,在之前版本的 Chrome 浏览器中没有白色背景,只是标准的彩色 Chrome 标志,为了适配 macOS Big Sur 的设计。

下载链接:

https://www.google.cn/chrome/

   This solution combines the IBT smart beam tracking antenna and high-power E-band, which increases the E-band carrying capacity from 20Gbps@3km to 20Gbps@5km, while reducing site deployment requirements and restrictions, and speeding up 5G deployment.

Huawei releases innovative 5G microwave long-distance

  Huawei stated that Huawei 5G Microwave has made innovative breakthroughs in transmission distance, spectrum efficiency, and deployment conditions for 5G deployment scenarios, providing ultra-wide, minimal, and easy-to-deploy 5G microwave bearer solutions to accelerate 5G network construction.

  With the deepening of 5G deployment, more regions will build 5G networks. Huawei has launched 5G cooperation with many countries, including Malaysia, Russia, the Philippines and Cambodia.

   Previously, Huawei’s rotating chairman Guo Ping stated that the commercial success of 5G will depend on the synergy between the five major technical fields of connectivity, cloud, computing, industry applications, and ubiquitous artificial intelligence (AI). These technologies are essential to unlock the full potential of 5G, help build smart cities, and further stimulate the digital economy.

  In China, as of the end of June this year, Chinese operators have built 400,000 5G base stations, and the number of 5G users has exceeded 100 million.

   At the beginning of August this year, a Huawei executive stated that by the end of this year, the number of 5G base stations in China will double to 800,000, and the number of 5G users will also double to 200 million. Both account for more than 70% of the world. (Little Fox)

google guava工具类是谷歌提供的一个方便的集合等处理工具

guava的优点:

高效设计良好的API,被Google的开发者设计,实现和使用
遵循高效的java语法实践
使代码更刻度,简洁,简单
节约时间,资源,提高生产力
Guava工程包含了若干被Google的 Java项目广泛依赖 的核心库,例如:

处理能力

集合 [collections]
缓存 [caching]
原生类型支持 [primitives support]
并发库 [concurrency libraries]
通用注解 [common annotations]
字符串处理 [string processing]
I/O 等等。

拆分list示例

 @Test
    public void test1() {
        List<List<Integer>> partitions = Lists.partition(lists, 10);
        for (List<Integer> list : partitions) {
            System.out.println(list);
        }
    }
<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>27.1-jre</version>
</dependency>
免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。