Java调用JavaScript时,若出现这个异常信息,是由于javascript文件中到导包不正确,将导包:
importPackage(java.util.ArrayList);改成 importPackage(java.util);
Function importPackage must be called with a package; had "[JavaClass java.util.ArrayList]" instead
Java调用JavaScript时,若出现这个异常信息,是由于javascript文件中到导包不正确,将导包:
importPackage(java.util.ArrayList);改成 importPackage(java.util);
Function importPackage must be called with a package; had "[JavaClass java.util.ArrayList]" instead