Merge pull request #1493 from Xwite/master

重写添加函数;修正书源调试文字错误
This commit is contained in:
kunfei
2022-01-04 19:10:33 +08:00
committed by GitHub
5 changed files with 52 additions and 16 deletions
+15 -2
View File
@@ -31,8 +31,21 @@
* 获取登录后的cookie
```
java.getCookie("http://baidu.com", null) => userid=1234;pwd=adbcd
java.getCookie("http://baidu.com", "userid") => 1234
获取全部
cookie.getCookie(url)
获取某一键值
cookie.getKey(url,key)
```
* 缓存网络文件
```
获取
java.cacheFile(url)
java.cacheFile(url,saveTime)
执行内容
eval(String(java.cacheFile(url)))
删除缓存文件
cache.delete(java.md5Encode16(url))
```
* 请求头,支持http代理,socks4 socks5代理设置
+8
View File
@@ -11,6 +11,14 @@
* 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。
* 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源!
**2022/01/04**
* 弃用java.getCookie(tag,key),请使用cookie.getKey(url,key)
* js添加java.cacheFile(url, saveTime),缓存网络链接,返回文件内容,可实现代码共用和减少代码量
```js
eval(String(java.cacheFile(url)))
```
**2022/01/03**
* 修复打开Web服务,切出app后很快崩溃 #1489