addNamedItem method
Adds a script object or COM object to the script context's variable namespace. This method makes a given script's methods available to other script instances. Such availability is important when binding events to child controls in an ActiveX component. Because event binding is name-based, this method gives much greater flexibility than would normally be available from the script host.
addNamedItem(script, name)
Parameters
IDispatch script
The script object to define.
String name
The name to be defined for the object in this script context.
Returns
void
这对您有帮助吗?