跳到主要内容

ReplacePageContent

使用指定的参数替换页面内容。

语法

expression.ReplacePageContent(nPage, oParams);

expression - 表示 Api 类的变量。

参数

名称必需/可选数据类型默认值描述
nPage必需number页面索引。
oParams必需object替换参数。
oParams.type必需"xml" | "html"要替换的内容类型(XML / HTML)。
oParams.options必需ReplaceXmlOptions | ReplaceHtmlOptions内容替换选项。

返回值

boolean