<!doctype html public "-//w3c//dtd html 4.0 tRANSITIONAL//en">
<html>
<head>
<title id="2"> </title>
<meta name="gENERATOR" content="eDITpLUS">
<meta name="aUTHOR" content="">
<meta name="kEYWORDS" content="">
<meta name="dESCRIPTION" content="">
<script>
function test()
{
var a = document.getElementById("1").value
var b = document.getElementById("2").value
if(1==1)
{
b=a;
}
}
</script>
</head> <body>
<input type="text" id="1"><input type="button" value="修改标题" onclick="test()">
</body>
</html>
我要怎样才能修改标题
<html>
<head>
<title id="2"> </title>
<meta name="gENERATOR" content="eDITpLUS">
<meta name="aUTHOR" content="">
<meta name="kEYWORDS" content="">
<meta name="dESCRIPTION" content="">
<script>
function test()
{
var a = document.getElementById("1").value
var b = document.getElementById("2").value
if(1==1)
{
b=a;
}
}
</script>
</head> <body>
<input type="text" id="1"><input type="button" value="修改标题" onclick="test()">
</body>
</html>
我要怎样才能修改标题
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货