This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Удаляем все пробелы, используя | |
// регулярные выражения в JavaScript (RegEx): | |
var text3 = " a b c d e f g "; | |
var newText3 = text3.replace(/\s+/g, ''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Чтение БО | |
var data = this.context.binding ? this.context.binding.get("value") : null; | |
if (data) { | |
// ваш код | |
} | |
// Чтение параметра | |
var title = this.context.options.title ? this.context.options.title.get("value") : null; | |
if (title) { | |
// ваш код | |
} |
OlderNewer