<!-- 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


