mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
docs: 更新js文档
This commit is contained in:
@@ -62,6 +62,7 @@ java.logType(var)
|
||||
* 从网络(由java.cacheFile实现)、本地导入JavaScript脚本
|
||||
```
|
||||
{{java.importScript(url)}}
|
||||
//相对路径支持android/data/{package}/cache
|
||||
{{java.importScript(relativePath)}}
|
||||
{{java.importScript(absolutePath)}}
|
||||
```
|
||||
@@ -238,4 +239,4 @@ cache.delete(key)
|
||||
cache.putFile(key, value, saveTime)
|
||||
读取文件内容
|
||||
cache.getFile(key)
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user