我在JQuery的工作之前,我有點不明白我怎麼可以在原型如何通過類名原型
<div class="quote_content">
<a>asd</a>
</div>
由於得到.quote_content
<a>asd</a>
得到DIV的HTML!
UPDATE
我有做一個函數:
<script type="text/javascript">// <![CDATA[
function showCompare() {
var quote_content = $$(".quote_content");
win = new Window({className: "mac_os_x", title: "Sample", width:800, height:400, destroyOnClose: true, recenterAuto:false});
win.getContent().innerHTML = quote_content;
win.showCenter();
}
// ]]></script>
但quote_content
輸出[object HTMLDivElement]