567gif出外:为什么对象未定义?
来源:百度文库 编辑:高考问答 时间:2024/05/13 14:56:55
<script language="javascript">
function hs2(){
if (a1.checked==ture){
alert(a1.value);
}
else{
alert(a2.value);
}
}
</script>
<form name="form2" enctype="multipart/form-data" method="post" action="a.asp">
<input type="radio" name="r1" value="aa" id="a1" onClick="hs2()">
<input type="radio" name="r1" value="bb" id="a2" onClick="hs2()">
</form>
用id去标识对象,但是为什么是未定义呢?
以前用 ID 都可以的?请高手指点
function hs2(){
if (a1.checked==ture){
alert(a1.value);
}
else{
alert(a2.value);
}
}
</script>
<form name="form2" enctype="multipart/form-data" method="post" action="a.asp">
<input type="radio" name="r1" value="aa" id="a1" onClick="hs2()">
<input type="radio" name="r1" value="bb" id="a2" onClick="hs2()">
</form>
用id去标识对象,但是为什么是未定义呢?
以前用 ID 都可以的?请高手指点
var a1=document.getElementById("a1")
var a2=document.getElementById("a2")
你把脚本放在html代码的下面
为什么对象未定义?
为什么总是说msoFileDialogFilePicker未定义?
为什么说我的变量未定义
在vc中使用strtofloat为什么系统说是未定义函数
为什么在线播放电影 出现错误 显示的是PLAYER1未定义
为什么总是提示:变量未定义: 'adUseClient'
Linux多线程编译中为什么说pthread_create未定义?
用vba访问sql server 怎么访问?我创建连接对象connection系统老提示用户定义类型未定义,怎么回事???
声明对象变量无法对具体的对象名称进行声明,如Dim Dcontrol As Command1运行程序会说"用户定义类型未定义"
scores 未定义