通过http标头读取所有查询字符串参数,而不是通过javascript中的应用程序中的查询字符串 [英] Read all query string parameters through http headers instead from query string across the application in javascript
问题描述
我是这个项目的新手,我在谷歌搜索了一些代码,但我知道在哪里我可以在我的整个项目的特定页面中编写代码可以请求帮助我任何一个
我尝试过:
var request = new XMLHttpRequest();
request.setRequestHeader(X-Requested-With,XMLHttpRequest);
request.open(GET,path,true);
request.send(空值);但我知道在哪里我可以编写代码,我怎么能修改它????
i am new in this project i searched in google getting some code but i dnt know where i can write the code in praticular page outof my entire project can u plese help me any one
What I have tried:
var request = new XMLHttpRequest();
request.setRequestHeader("X-Requested-With", "XMLHttpRequest");
request.open("GET", path, true);
request.send(null); but i dnt where i can write the code and how can i modified that????
推荐答案
看看这个: setRequestHeader方法(XMLHttpRequest)JavaScript [ ^ ]。
您必须将各种代码文件放在一个文件夹中并将其托管在Web服务器上。为了理解代码的工作原理,您必须具备HTML和JavaScript知识。如果你不知道我在说什么,那就去那里 [ ^ ]开始学习。
Check this out: setRequestHeader method (XMLHttpRequest) JavaScript[^].
You have to place the various code files in a folder and host it in on a web server. In order to understand how the code work, you must have knowledge of HTML and JavaScript. If you have no idea what I am talking about, then head there[^] to start learning.
这篇关于通过http标头读取所有查询字符串参数,而不是通过javascript中的应用程序中的查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!