跳到主要内容

CreateUndefined

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

备注

此方法不适用于 COMJS

语法

def CreateUndefined() -> CDocBuilderValue

示例

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