跳到主要内容

CreateUndefined

创建未定义值。此方法返回当前上下文并调用其 CreateUndefined 方法。

备注

此方法在 COM 中不可用。

请注意,对于 .docbuilder 文件,不使用 CDocBuilderValue.CreateUndefined 方法。

语法

def CreateUndefined() -> CDocBuilderValue

示例

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
api = globalObj["Api"]
undefined = api.CreateUndefined()