jquery獲取文件名稱
...
...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <titl ...
...
1. ...
<input type="file" id="file1" /> <script> var size = $("#file1")[0].files[0].size; ...
截圖: 代碼: ...
首先下載源碼 文件名 jquery.uploadView.js(注意先后順序,jquery必須要在插件之前引入) 在模板頁加入上傳框,html: js: ajax請求要傳的參數之一:var docFile ...