我尝试在元素中获取内容,并且希望在浏览器中显示内容相同
例
<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
在浏览器上显示时相同。那可能吗?怎么做,谢谢。
这是我的代码
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句