我一點(diǎn) hi 按鈕,彈出的是 :可我的路徑明明是 Z:金字塔數(shù)據(jù)minute1PP01_50000~59999@129310.txt可能 <input type="file"> 本身就是這樣,能不能用別的 標(biāo)簽代替 <input type="file"> 呢?比如 用js 做一個(gè)事件 function ,直接彈出一個(gè)瀏覽框 ,并且把 選中的文件保存到一個(gè) div 標(biāo)簽里..<body> <input type="file" id = "filename" name="file" accept="image gif" /> <button id="an">hi</button></body><script> $(function(){ $("#an").on("click",showInfo); function showInfo() { alert( $("#filename").val() ); } })</script>
怎么看一個(gè)<input type="file">瀏覽的單機(jī)路徑?
長(zhǎng)風(fēng)秋雁
2018-08-31 10:43:50