简体   繁体   中英

why is console.log(XHR.responceText) logging undefined in javascript

Here is my code: [My Javascript Code][1] [1]: https://i.stack.imgur.com/dP9Vk.png

and the result is just undefined: undefined printed in console

How do I fix this?

I think you have a typo in responceText . It should be responseText

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM