爲什麼這不起作用:如何獲得小孩div的內容?
<div class="store" id="vframestore">
<div>http://www.youtube.com/embed/_6DPBCOukLU?showinfo=0&modestbranding=1&fs=0&rel=0</div>
<div>http://www.youtube.com/embed/ZMr0q4Jz_uM?showinfo=0&modestbranding=1&fs=0&rel=0</div>
</div>
JS
var a = $("#vframestore").children[0].html;
console.log(a);
error: Uncaught TypeError: Cannot read property 'html' of undefined
的可能的複製[jQuery的孩子得到專區內的值(http://stackoverflow.com/questions/2312876/jquery-get- value-within-child-div) – Megha
'var a = $(「#vframestore」)。children()[0];' –