值为 null,未定义或不是 Function 对象,以下是我的js代码,用servlet写的,调用的时候出现这样的问题
functionaddshtml(){create();varDRIVENAME=document.getElenmentById("DRIVENAMES");varCO...
function addshtml(){
create();
var DRIVENAME=document.getElenmentById("DRIVENAMES");
var CONURL=document.getElenmentById("CONURLS");
var ACOUNT=document.getElenmentById("ACOUNTS");
var pass=document.getElenmentById("PASSS");
var createuser=document.getElenmentById("CREATE_USERSS");
if (DRIVENAME==""){
alert("请输入DRIVENAME");
return ;
}
if (CONURL==""){
alert("请输入CONURL");
return ;
}
if(ACOUNT=="")
{
alert("请输入ACOUNT");
return ;
}
if(pass=="")
{
alert("请输入pass");
return;
}
if(createuser=="")
{
alert("请输入CREATE_USER");
return;
}
var URL ="AddServlet?DRIVENAME="+DRIVENAME+"&CONURL="+CONURL+"&ACOUNT="+ACOUNT+"&PASS="+pass+"&CREATE_USER="+createuser;
xmlHttp.open("GET",URL,true);
xmlHttp.send(null);
} 展开
create();
var DRIVENAME=document.getElenmentById("DRIVENAMES");
var CONURL=document.getElenmentById("CONURLS");
var ACOUNT=document.getElenmentById("ACOUNTS");
var pass=document.getElenmentById("PASSS");
var createuser=document.getElenmentById("CREATE_USERSS");
if (DRIVENAME==""){
alert("请输入DRIVENAME");
return ;
}
if (CONURL==""){
alert("请输入CONURL");
return ;
}
if(ACOUNT=="")
{
alert("请输入ACOUNT");
return ;
}
if(pass=="")
{
alert("请输入pass");
return;
}
if(createuser=="")
{
alert("请输入CREATE_USER");
return;
}
var URL ="AddServlet?DRIVENAME="+DRIVENAME+"&CONURL="+CONURL+"&ACOUNT="+ACOUNT+"&PASS="+pass+"&CREATE_USER="+createuser;
xmlHttp.open("GET",URL,true);
xmlHttp.send(null);
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询