如何取出文件名?

如何取出文件名
如C:\WINNT\Profiles\check_date.htm中的check_date.htm
給50分
---------------------------------------------------------------

1<input name="a" type="file"/>
1<input onclick="alert(a.value.substr(a.value.lastIndexOf('\\\')+1))" type="button" value="get"/>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus