Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 GWT 从此 URL 获取“查询参数”:
127.0.0.1:8888/App.html?gwt.codesvr=127.0.0.1:9997#Login&oauth_token=theOauthToken&oauth_verifier=123456
我需要得到oauth_verifier
oauth_verifier
然而,Window.Location.getParameter("oauth_verifier");正在回归null。
Window.Location.getParameter("oauth_verifier");
null
如何得到这个?
您可以使用getHash()进行尝试:-
string s= Window.Location.getHash();