12 063
правки
(Новая страница: «Global objects of all scenarios have a common object-"prototype", in which standard functions are defined wb-rules (such as defineRule, setTimeout, etc.). It can…») |
(Новая страница: «<syntaxhighlight lang="js"> global.__proto__.myVar = 42; // now myVar - is a common variable for all scripts») |
||
Строка 116: | Строка 116: | ||
<syntaxhighlight lang="js"> | <syntaxhighlight lang="js"> | ||
global.__proto__.myVar = 42; // | global.__proto__.myVar = 42; // now myVar - is a common variable for all scripts | ||
// из других сценариев к переменной можно обращаться так | // из других сценариев к переменной можно обращаться так |
правки