function ss(){ var file=document.getElementById("a").value; document.getElementById("b").value=file; alert(document.getElementById("b").value); }
我的传取值有问题,b的值还是空的,请大家帮我解决下。
对于file控件,只有两个操作。
一个取出file控件上的文件名称;
一个是清空控件上的文件名称。
document.getElementById("b").value=file;这句话是无效的。。
简而言之:无法赋值!
写的是ss命名的方法,但是下面onclick调用确实chuanzhi().当然没有执行ss这个方法了