Движок правил wb-rules 1.7/en: различия между версиями

Новая страница: «// or like this, which is a bit more accurate, because it clearly shows where the variable is defined log("shared myVar: {}", global.__proto__.myVar); </syntaxhig…»
(Новая страница: «// the variable can be accessed from other scripts as follows log("shared myVar: {}", myVar);»)
(Новая страница: «// or like this, which is a bit more accurate, because it clearly shows where the variable is defined log("shared myVar: {}", global.__proto__.myVar); </syntaxhig…»)
Строка 121: Строка 121:
log("shared myVar: {}", myVar);
log("shared myVar: {}", myVar);


// или вот так, что чуть более аккуратно, т.к. однозначно показывает, где определена переменная
// or like this, which is a bit more accurate, because it clearly shows where the variable is defined
log("shared myVar: {}", global.__proto__.myVar);
log("shared myVar: {}", global.__proto__.myVar);
</syntaxhighlight>
</syntaxhighlight>
12 063

правки