Материал из Module developer
module.Import
Import of object with classes from module file
Синтаксис
module.Import(FileName)
| Название | Пример | Описание |
| FileName | "GUI.js" | type: string Name of .js file |
| На выходе |
| Object | type: Object Object with classes |
Пример
//Name_1.js - first .js file this.Text = "Hello, world!"; //Pointer to text variable //Name_2.js - second .js file var Text = module.Import("Name_1.js").Text; //Import from the first .js file an object with a pointer to text variable IR.Log(Text); //"Hello, world!" //log Text variable
