js获取某个标签中的信息

时间:2023-01-22 07:06:27
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Examples</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
</head>
<body>
<iplist>11111.jjj</iplist>
</body>
<!-- <script type="text/javascript" src="jquery-1.8.0.min.js"></script> -->
<script>
alert(document.getElementsByTagName("iplist")[0].innerHTML);
</script>
</html>