From 283fc8b73863093df0961c97c9abc46acb9c63d5 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Mon, 10 Jul 2023 11:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20log=20file=20=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/SyntaxCase/consoleTest.vue | 5 +++++ uni_modules/uts-advance/utssdk/app-android/index.uts | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/pages/SyntaxCase/consoleTest.vue b/pages/SyntaxCase/consoleTest.vue index 1936c81..54d896a 100644 --- a/pages/SyntaxCase/consoleTest.vue +++ b/pages/SyntaxCase/consoleTest.vue @@ -4,6 +4,7 @@ + @@ -16,6 +17,7 @@ logObjectTest, logFunctionTest, logDateTest, + logFileTest, logDateCombineTest } from '@/uni_modules/uts-advance' @@ -43,6 +45,9 @@ logFunction() { logFunctionTest() }, + logFile() { + logFileTest() + }, logDate() { logDateTest() }, diff --git a/uni_modules/uts-advance/utssdk/app-android/index.uts b/uni_modules/uts-advance/utssdk/app-android/index.uts index 6c69a97..475cae4 100644 --- a/uni_modules/uts-advance/utssdk/app-android/index.uts +++ b/uni_modules/uts-advance/utssdk/app-android/index.uts @@ -26,6 +26,7 @@ import { UTSAndroid } from "io.dcloud.uts"; import array from 'android.R.array'; +import File from 'java.io.File'; @@ -448,6 +449,11 @@ export function logFunctionTest(){ } + +export function logFileTest(){ + console.log(new File("/sdcard/temp/1.txt")) +} + export function logDateTest(){ console.log(new Date()) } -- GitLab