diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index 0897a5989..90ec06c55 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -490,6 +490,17 @@ interface JsExtensions { return msg } + /** + * 输出对象类型 + */ + fun logType(any: Any?) { + if (any == null) { + log("null") + } else { + log(any.javaClass.name) + } + } + /** * 生成UUID */