JsEngine class
js_engine @Author ruilin @Date 2024/3/20
@Description JS引擎
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
clear(
) → void -
loadLib(
String code) → Future< String> - 加载JS库,请勿重复加载相同的code
-
runCode(
String code, {String? params, OnJsCallback? callback}) → Future< String> - 运行代码
-
setDebugMode(
dynamic debugMode) → dynamic -
setLogProxy(
OnLogProxy proxy) → dynamic - 设置日志输出代理
Constants
- JS_RUN_INFO → const String
- JS_RUN_PARAMS → const String
- 引擎内置JS参数