<html>
<head>
<title>yugi</title>
<meta charset=UTF-8 />
<style type="text/css">
</style>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript">
jQuery (function ($)
{
var array = $.parseHTML ($ ("body").html ())
$ (array).each (function (i, dom)
{
console.log ($ (this).text ())
})
})
</script>
</head>
<body>
content:
<p style="color: red">文本测试</p>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)