Skip to content

Instantly share code, notes, and snippets.

View bizikov's full-sized avatar

Alexandr Bizikov bizikov

View GitHub Profile
@bizikov
bizikov / replace.js
Created July 31, 2014 05:21
Убрать все пробелы в строке
// Удаляем все пробелы, используя
// регулярные выражения в JavaScript (RegEx):
var text3 = " a b c d e f g ";
var newText3 = text3.replace(/\s+/g, '');
@bizikov
bizikov / example.js
Created August 12, 2015 11:11
IBM Process Designer 8.5: Чтение и запись данных в Coach View
// Чтение БО
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) {
// ваш код
}