2
表明,它获得元素相同的内容我试图让内部元素的内容,我想这是一样的,当在浏览器中显示如何当浏览器
例
<pre class="yyy">Hello this is <span style="display: none;"> test </span> text </pre>
和
它// how to alert (get) content like when it shown on browser: Hello this is text
alert($(".yyy").html());
我想要提醒的结果是:Hello this is text
与浏览器上显示的一样。那可能吗?如何做到这一点,谢谢。
这里是我的code
这在这个例子中有效,但在我的实际应用程序中效果不好。 – DeLe