你要获取客户端的那个路径也不是不可以,要用到selection对象
id : 'uploadFileFieldPath',
var f=document.getElementById('uploadFileFieldPath-file');//实际的file控件对象,ext已经设置为透明的了,ext2.0版本太老找不到下载的,这个是2.2版本的控件id规则,不知道2.0是不是这样的
f.select();
//only for IE
alert(document.selection.createRange().text)
[quote=引用 9 楼 showbo 的回复:]
你要获取客户端的那个路径也不是不可以,要用到selection对象
id : 'uploadFileFieldPath',
var f=document.getElementById('uploadFileFieldPath-file');//实际的file控件对象,ext已经设置为透明的了,ext2.0版本太老找不到下载的,这个是2.2版本的控件id规则,不知道2.0是不是这样的
f.select();
//only for IE
alert(document.selection.createRange().text)
你要获取客户端的那个路径也不是不可以,要用到selection对象
id : 'uploadFileFieldPath',
var f=document.getElementById('uploadFileFieldPath-file');//实际的file控件对象,ext已经设置为透明的了,ext2.0版本太老找不到下载的,这个是2.2版本的控件id规则,不知道2.0是不是这样的
f.select();
//only for IE
alert(document.selection.createRange().text)