Default URL for XMLHttpRequest

假如想象 提交于 2020-01-24 23:13:26

问题


Similarly to how a <form> with either no action attribute or an empty one, is it consistent and reliable behaviour that an XMLHttpRequest with en empty string given to the URL parameter will request the current URL?


回答1:


After experimentation, it appears the answer is "No". In fact, the URL argument is required and will cause an error.



来源:https://stackoverflow.com/questions/12955019/default-url-for-xmlhttprequest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!