Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下が機能する場合:
alert( data.query.results.tbody[1].tr[0].td[0].span.img.src );
なぜこれが機能しないのですか?
var image = data.query.results.tbody[1].tr; alert( image[0].td[0].span.img.scr );
2番目のアラートは私に与えます:
Undefined
スペルscrを修正してsrc:-)
scr
src
alert( image[0].td[0].span.img.src );