|
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&fpage=9&tid=1443451]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
37ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
45ms |
get tp. blocked users: |
2ms |
others: | 252ms |
total: | 382ms |
0 / 0 |