postJsCacheGenerationTask

启动一个子线程任务,为当前模板生成 js 代码缓存

语法

Android

public void postJsCacheGenerationTask(String bytecodeSourceUrl, boolean useV8);

参数说明

  • bytecodeSourceUrl: 当前模板的 url
  • useV8: 是否生成 V8 代码缓存,否则生成 QuickJS 代码缓存

iOS

- (void)postJsCacheGenerationTask:(nonnull NSString *)bytecodeSourceUrl;

参数说明

  • bytecodeSourceUrl: 模板的源 URL。

Harmony

public postJsCacheGenerationTask(bytecodeSourceUrl: string, useV8: boolean): void;

参数说明

  • bytecodeSourceUrl: 当前模板的 url。
  • useV8: 是否生成 V8 代码缓存,否则生成 QuickJS 代码缓存。

兼容性

LCD tables only load in the browser

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。