跳至主要內容
版本:23.11.1

FrameAddScriptTagOptions 介面

簽名

export interface FrameAddScriptTagOptions

屬性

屬性

修飾符

類型

描述

預設值

content

選用

string

要注入到框架中的 JavaScript。

id

選用

string

設定腳本的 id

path

選用

string

要注入到框架中的 JavaScript 檔案路徑。

備註

如果 path 是相對路徑,它會相對於目前的工作目錄 (Node.js 中的 process.cwd()) 解析。

type

選用

string

設定腳本的 type。使用 module 來載入 ES2015 模組。

url

選用

string

要加入的腳本網址。