javascript 打印輸出 object


<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script type="application/javascript" src="jquery.js"></script>
<title>企業培訓,it培訓,數據庫培訓,android培訓,嵌入式培訓</title>
</head>
<body>
<div>http://www.×××企業培訓</div>
<div>http://www.amboedu.com學歷教育</div>
<div>http://www.ciitn.com</div>
<div>http://www.×××/amt2011技術峯會</div>
</body>
</html>
<script language="javascript">
    $(document).ready(function() {
          var r="";
          var t = $("div:contains('miiceic')");
          var l=t.length;
          for(i=0;i<l;i++){
              r = r + t.get(i).tagName+":"+t.get(i).textContent + "\r\n";
          }
          alert(r);
        });
</script>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章