×
=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 = "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
Search
Programming, development, testing
→
JavaScript - programming language for HTML
→
Text, strings in the JavaScript
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 ссылки может добавлять только залогиненный пользователь)
+ картинку
Объявления
Ваши вопросы присылайте по почте:
info@dir.by