<html>
<head>
<title> 尝试一下</title>
</head>
<link rel="stylesheet" href="http://192.168.12.54/css/5.css" type="text/css" ></link>
<body>
<p>你好</p>
</body>
<html>我现在想读取link标签中对应的href中的网址,应该怎么做呢?
在线等啊 谢谢!!
<head>
<title> 尝试一下</title>
</head>
<link rel="stylesheet" href="http://192.168.12.54/css/5.css" type="text/css" ></link>
<body>
<p>你好</p>
</body>
<html>我现在想读取link标签中对应的href中的网址,应该怎么做呢?
在线等啊 谢谢!!
<html>
<head>
<title> 尝试一下</title>
</head>
<link rel="stylesheet" href="http://**/css/5.css" type="text/css" ></link><body>
<p>你好</p>
<script>
alert( document.getElementsByTagName('link')[0].href )
</script>
</body>
<html>