热更新工具修改

This commit is contained in:
gongxh
2025-04-18 17:51:42 +08:00
parent 80558e51fe
commit be4e48e8a0
8 changed files with 502 additions and 186 deletions

View File

@@ -36,4 +36,15 @@ export class Utils {
return 0;
}
/**
* 判断传入的字符串是否是json格式的字符串
*/
public static isJsonString(str: string): boolean {
try {
JSON.parse(str);
return true;
} catch (e) {
return false;
}
}
}