UNPKG

worker-tls

Version:

worker-tls 提供了 动态Worker 功能 和 其它一些 Worker 场景下有用的工具集;让开发者可以像调用对象方法一样动态地调用Worker中的方法,也可以随时地往 Worker 中动态地添加函数 等等。

69 lines (32 loc) 871 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [worker-tls](./worker-tls.md) &gt; [createObjectURLByCodes](./worker-tls.createobjecturlbycodes.md) ## createObjectURLByCodes() function 通过代码构建 ObjectURL **Signature:** ```typescript export declare function createObjectURLByCodes(codes: CodePart[], args?: Optional<any[]>): string; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> codes </td><td> [CodePart](./worker-tls.codepart.md)<!-- -->\[\] </td><td> </td></tr> <tr><td> args </td><td> Optional&lt;any\[\]&gt; </td><td> _(Optional)_ 对于立即调用的函数传的参数 </td></tr> </tbody></table> **Returns:** string