From a47cae00afa43360562e484498b0f4503f5dd2e5 Mon Sep 17 00:00:00 2001 From: Xwite <82232510+Xwite@users.noreply.github.com> Date: Tue, 5 Apr 2022 19:11:56 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0js=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/help/jsHelp.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/assets/help/jsHelp.md b/app/src/main/assets/help/jsHelp.md index 40c368d58..b6b0a3c79 100644 --- a/app/src/main/assets/help/jsHelp.md +++ b/app/src/main/assets/help/jsHelp.md @@ -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) -``` \ No newline at end of file +```