Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:又一个url的问题

1楼
ygg8310 发表于:2023/10/27 12:37:00
   var file = fileInput.files[0];
var formData = new FormData();
formData.append('file', file);
 
var xhr = new XMLHttpRequest();
xhr.open('POST', 'url', true);
xhr.onload = function () {
  if (xhr.status === 200) {
    console.log('upload success');
  }
};
xhr.send(formData);
老师帮我指点一下,这个红色的url部分
在普通的html界面该怎么填写?
2楼
有点蓝 发表于:2023/10/27 13:56:00
服务端哪个地址接收数据的就填哪个,比如

httprequest事件
Select Case e.Path
    Case "test.htm"
       接收文件的代码

End Select

js

xhr.open('POST','http://www.abc.com/test.htm', true);
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .04297 s, 2 queries.