JS赋值 初学

发布网友

我来回答

3个回答

热心网友

1、应该是这样 document.getElementById(""),注意这个I
2、空的话直接 obj = "";就可以了

热心网友

function check11(){
var send_person =document.getElementByid("send_person").value;
if(send_person == "")
document.getElementByid("send_date").value="";
}

热心网友

function check(){
var send_person =document.getElementByid("send_person").value;
if(send_person=null||send_person=="") {
var obj=document.getElementByid("send_date");
obj.value="";

}
}

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com