Закрыть
×
=0) { let js = text.slice(pos1, pos2); + '<\/' + "script" + '>'; arrText.push(js); // next pos1 = pos2; continue; } } } break; } return arrText; } function OpenDialog(parentDiv, urlContent) { parentDiv = document.getElementById('modal-background'); // new !!!!!!! parentDiv.appendChild(document.getElementById('modal-template')); document.getElementById('modal-background').style.display = "flex"; // !!!!! block document.getElementById('modal-template').style.display = "flex"; // !!!!! document.getElementById('modal-body').innerHTML = ""; post_url(urlContent, "", function(text_from_server) { var element = document.getElementById('modal-body'); element.innerHTML = text_from_server; // add scripts var arrJSText = get_scripts(text_from_server); for (var i=0; i
dir.by
Праздники ...
Праздники ...
Праздник весны и труда (1 мая)
Концерты, выставки ...
Концерты, выставки ...
Спектакль "Летучая мышь"|||г. Минск 15 марта, 17 мая, 11 июля 2026
Афишу
Спорт занятия ...
Спорт занятия ...
Катание на коньках (зимой)
Спорт занятие
Компьютер, программы...
Компьютер, программы...
Объявления ...
Объявления ...
Куплю, обмен старые Швейцарские франки, бумажные Английские фунты стерлингов и др.
Объявление
Форум ...
Форум ...
обсуждение...
Поиск
Концерты
Спорт
Форум
Компьютер
Компьютер, программы
→
JavaScript - programming language for HTML
Text, strings in the JavaScript
Стандарт ES5
Text in the JavaScript. Class String. Example: var myText = String("World"); | standard ES5
Length (string length in the JavaScript) | standard ES5
Function replace(text1, text2) replace text in the JavaScript | standard ES5
Function toUpperCase() converts text to uppercase JavaScript | standard ES5
Function toLowerCase() lowercase text JavaScript | standard ES5
Function split(delimiter) splits a string into substrings JavaScript | standard ES5
Function charAt(position) get a symbol by position JavaScript | standard ES5
Function substr(pos, len) returns a substring JavaScript | standard ES5
Function slice(pos1, pos2) returns a substring JavaScript | standard ES5
Function substring(pos1, pos2) returns a substring JavaScript | standard ES5
Function indexOf(text, startPos) searches for a substring and returns an index JavaScript | standard ES5
Function startsWith(text) Checks, whether the line begins with the specified substring JavaScript | standard ES5
Function trim() remove spaces at the beginning and end of a line JavaScript | standard ES5
Функция padStart(length, symbol) добавляет в начале строки символы до нужной длины строки JavaScript | стандарт ES5
Функция padEnd(length, symbol) добавляет в конце строки символы до нужной длины строки JavaScript | стандарт ES5
Стандарт ES6
В текстовую переменную можно назначить текст как много строк. Пример: var myText = `Hello \n Thanks \n Bye` | JavaScript standard ES6
In a text variable, you can write expressions with variables (formatting, string interpolation). Example: var myText = `Hello ${a}` | JavaScript standard ES6
Ваши Отзывы ... комментарии ...
Вашe имя
Ваш комментарий
(www ссылки может добавлять только залогиненный пользователь)
+ картинку
Экскурсии по Москве: пешеходные, автобусные и речные прогулки на любой вкус
Анонс!
Ярмарка вакансий для молодежи, работа (учащихся, которые хотели бы подработать в свободное время, а также выпускники)|||Минск, Витебск, Гомель, Гродно, Могилев, Борисов, Полоцк, Брест, Барановичи, Пинск с 13 по 17 апреля 2026
Объявления
Ваши вопросы присылайте по почте:
info@dir.by