<!-- 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字符串

