Skip to main content

getAttributeValueFromParseTreeNode

tw5-typed


tw5-typed / modules/utils/parsetree / getAttributeValueFromParseTreeNode

Function: getAttributeValueFromParseTreeNode()

getAttributeValueFromParseTreeNode(node, name, defaultValue?): unknown

Defined in: src/modules/utils/parsetree.d.ts:36

Get attribute value from parse tree node.

Parameters​

node​

IParseTreeNode

The parse tree node.

name​

string

The name of the attribute.

defaultValue?​

unknown

The default value of the attribute.

Returns​

unknown

The value of the attribute.

Description​

从解析树节点获取属性值。