关于js,错误提示,为空或不是对象
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/l...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<script type="text/javascript">
var m="1234";
document.getElementById("n").value=m;
</script>
</head>
<body>
<input type="text" id="n">
</body>
</html> 展开
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<script type="text/javascript">
var m="1234";
document.getElementById("n").value=m;
</script>
</head>
<body>
<input type="text" id="n">
</body>
</html> 展开
3个回答
展开全部
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
</head>
<body>
<input type="text" id="n" name="n">
<script type="text/javascript">
var m="1234";
document.getElementById("n").value=m;
</script>
</body>
</html>
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
</head>
<body>
<input type="text" id="n" name="n">
<script type="text/javascript">
var m="1234";
document.getElementById("n").value=m;
</script>
</body>
</html>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询