HTML Application Cache (简称 HAC)是一套针对缓存应用资源的接口,通过此套接口,可以实现网页的离线访问,或者在网速较慢的情况下也能快速打开页面。使用 HAC 之后,浏览器在请求网站的时候首先会去 cache 内查找,如果命中,则会加载命中的资源,如果没有,则向服务端请求,再 ...
分类:
移动开发 时间:
2020-04-04 22:38:31
阅读次数:
89
wx.request({ url: "路径", method: 'post', header: { "Content-Type": "application/x-www-form-urlencoded" }, data: { }, success: function (res) { console. ...
分类:
微信 时间:
2020-04-04 20:27:56
阅读次数:
96
一、Api请求及响应规范 为了严格按照接口进行开发,提高效率,对请求及响应格式进行规范化。 1、get 请求时,采用key/value格式请求,SpringMVC可采用基本类型的变量接收,也可以采用对象接收。 2、Post请求时, 可以提交form表单数据(application/x-www-for ...
分类:
编程语言 时间:
2020-04-04 20:16:38
阅读次数:
80
Templates Short Name Language Tags Console Application console [C#], F#, VB Common/Console Class library classlib [C#], F#, VB Common/Library WPF Appl ...
分类:
Web程序 时间:
2020-04-04 17:26:05
阅读次数:
84
测试: package t1; import java.util.concurrent.TimeUnit; class MyThread implements Runnable { private String lockA; private String lockB; public MyThread ...
分类:
其他好文 时间:
2020-04-04 10:04:03
阅读次数:
91
什么是应用程序缓存(Application Cache)? HTML5 引入了应用程序缓存,这意味着 web 应用可进行缓存,并可在没有因特网连接时进行访问。 应用程序缓存为应用带来三个优势: 离线浏览 - 用户可在应用离线时使用它们 速度 - 已缓存资源加载得更快 减少服务器负载 - 浏览器将只从 ...
分类:
Web程序 时间:
2020-04-04 09:31:09
阅读次数:
83
{ 工具类代码 public native static String getAssetStringUseJNI(Context context,String path); 1NDK代码#include <jni.h>#include <assert.h>#include <string.h>#in ...
分类:
移动开发 时间:
2020-04-04 00:14:25
阅读次数:
191
Eureka的介绍: Eureka是spring cloud框架的一个组件,作为注册中心,使用推拉机制动态获取IP和端口。 Eureka的配置: 1. Eureka-server端的配置文件application.yml: server: port: 7001 eureka: client: reg ...
分类:
编程语言 时间:
2020-04-03 20:17:09
阅读次数:
84
这里先讲一下nRF52的启动流程:上电后,系统先执行softdevice,softdevice通过读取UICR一个寄存器的值,来判断目前系统是否有BootLoader,如果没有BootLoader,系统直接跳到application;如果有BootLoader,系统先跳到BootLoader,Boo ...
分类:
其他好文 时间:
2020-04-03 16:32:18
阅读次数:
187
var filename = 'test.xlsx'; var xhr = new XMLHttpRequest(); xhr.open('POST', downloadExcel, true); xhr.setRequestHeader("Content-Type", "application/j ...
分类:
其他好文 时间:
2020-04-03 16:29:19
阅读次数:
195