|
Как устранить ошибку Uncaught TypeError: .forEach is not a function
|
|||
---|---|---|---|
#18+
Здравствуйте! Подскажите, пожалуйста, из-за чего такая ошибка?: Uncaught TypeError: tours_list.forEach is not a function Код: javascript 1. 2. 3. 4. 5.
... |
|||
:
Нравится:
Не нравится:
|
|||
17.05.2020, 16:37 |
|
Как устранить ошибку Uncaught TypeError: .forEach is not a function
|
|||
---|---|---|---|
#18+
отладка по шагам знакома? console.log() ? console.log(tours_list); ?? ... |
|||
:
Нравится:
Не нравится:
|
|||
17.05.2020, 18:54 |
|
Как устранить ошибку Uncaught TypeError: .forEach is not a function
|
|||
---|---|---|---|
#18+
https://developer.mozilla.org/en-US/docs/Web/API/NodeList Although NodeList is not an Array, it is possible to iterate over it with forEach(). It can also be converted to a real Array using Array.from(). However, some older browsers have not implemented NodeList.forEach() nor Array.from(). This can be circumvented by using Array.prototype.forEach() — see this document's Example . ... |
|||
:
Нравится:
Не нравится:
|
|||
18.05.2020, 08:50 |
|
|
start [/forum/topic.php?fid=22&msg=39958662&tid=1443463]: |
0ms |
get settings: |
12ms |
get forum list: |
14ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
31ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
50ms |
get tp. blocked users: |
2ms |
others: | 15ms |
total: | 150ms |
0 / 0 |