import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; ScriptEngineManager sem = new ScriptEngineManager(); ScriptEngine engine = sem.getEngineByExtension("js"); Object res = engine.eval(" unescape('%u620E%u8F89')");
import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; ScriptEngineManager sem = new ScriptEngineManager(); ScriptEngine engine = sem.getEngineByExtension("js"); Object res = engine.eval(" unescape('%u620E%u8F89')");
转载于:https://www.cnblogs.com/BambooLamp/p/11420117.html