(content: string | undefined | null, isUrl?: boolean, scriptType?: string)
| 260 | } |
| 261 | |
| 262 | private loadScript(content: string | undefined | null, isUrl?: boolean, scriptType?: string) { |
| 263 | if (!content) { |
| 264 | return; |
| 265 | } |
| 266 | return isUrl ? load(content, scriptType) : evaluate(content, scriptType); |
| 267 | } |
| 268 | |
| 269 | // todo 补充类型 |
| 270 | async loadAsyncLibrary(asyncLibraryMap: Record<string, any>) { |