标签:log code get blog script bsp logs inpu element
<input name="file_" type="file" id="file_" size="100" /> <input type="button" name="button" id="button" value=" 提 取 " onclick="ch_()"/> <script> function ch_(){ var url=document.getElementById("file_").value; url=url.split("\\");//这里要将 \ 转义一下 alert("文件名 "+url[url.length-1]); } </script>
标签:log code get blog script bsp logs inpu element
原文地址:http://www.cnblogs.com/shihaiming/p/6877747.html