|
consol.log как вывести в html
|
|||
---|---|---|---|
#18+
Есть скрипт: var str = document.getElementById("char_textarea"); var newstr = str.replace(/Transfer: /i, ''); let arr = newstr.split('<br>'); function filterItems(query) { return arr.filter(function(el) { return el.toLowerCase().indexOf(query.toLowerCase()) > -1; }) } console.log(filterItems('Вопрос:')); Нужно пихнуть его в html, что бы он исполнялся и собирал данные с текстового поля char_textarea, как это сделать? ... |
|||
:
Нравится:
Не нравится:
|
|||
01.06.2020, 22:43 |
|
|
start [/forum/topic.php?fid=22&msg=39965177&tid=1443451]: |
0ms |
get settings: |
13ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
66ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
42ms |
get tp. blocked users: |
1ms |
others: | 13ms |
total: | 168ms |
0 / 0 |