UNPKG

worker-tls

Version:

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

72 lines (34 loc) 873 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [worker-tls](./worker-tls.md) &gt; [createObjectURLByContents](./worker-tls.createobjecturlbycontents.md) ## createObjectURLByContents() function 将一组脚本内容构造成 ObjectURL **Signature:** ```typescript export declare function createObjectURLByContents(scripts: BlobPart[], options?: BlobPropertyBag | null): string; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> scripts </td><td> BlobPart\[\] </td><td> 脚本内容 </td></tr> <tr><td> options </td><td> BlobPropertyBag \| null </td><td> _(Optional)_ 选项 </td></tr> </tbody></table> **Returns:** string url字符串