cn.hutool.script Class ScriptUtil java.lang.Object cn.hutool.script.ScriptUtil public classScriptUtilextendsObject 脚本工具类 Author: Looly Constructor Summary Constructors Constructor and Description ScriptUtil() Method Summary All MethodsStatic MethodsConcrete Methods ...
介绍 针对Script执行工具化封装 使用 ScriptUtil.eval 执行Javascript脚本,参数为脚本字符串。 栗子: ScriptUtil.eval("print('Script test!');
cn.hutool.script.ScriptUtil Maven / Gradle / Ivy Go to download Show more of this groupShow more artifacts with this name Show all versions of hutool-allShow documentation Hutool是一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅,让Java语...
use cn.hutool.core.date.*; fn monthbet(a,b){ let format = "yyyy-MM-dd"; let endDate = string_to_date(b,format); let OpenDate = string_to_date(a,format); return DateUtil.betweenMonth(OpenDate,endDate,false); } println(monthbet('2019-06-00','2021-10-08T11:14:16')); 脚本...