简体   繁体   English

带有数据传输和使用 javascript 读取它的 URL 不起作用

[英]Url with data transfer and reading it using javascript not working

I am working on hosting a website from a shared drive.我正在从共享驱动器托管网站。 While I know that are a lot of options to host a website, but I don't have any admin access to have any software installed for doing this with ease.虽然我知道托管网站有很多选择,但我没有任何管理员权限来安装任何软件来轻松执行此操作。

http://burnignorance.com/javascript-performance-tips/how-to-fetch-get-request-data-from-url-on-page-load-using-javascript/ http://burnignorance.com/javascript-performance-tips/how-to-fetch-get-request-data-from-url-on-page-load-using-javascript/

The given URL helps me to create a site and pass some value in the URL and then using Java scripting get the information that is passed in the URL.给定的 URL 帮助我创建一个站点并在 URL 中传递一些值,然后使用 Java 脚本获取在 URL 中传递的信息。 Now the site that I have created is on the local shared drive and the path is现在我创建的站点在本地共享驱动器上,路径是

\\server\\Test.html \\server\\Test.html

the give path works great.给路径效果很好。 But is I try to create something like this as per the example it does not work.但是我是否尝试根据示例创建这样的东西,它不起作用。 can some tell me the right way of creating URL from a shared folder.有人能告诉我从共享文件夹创建 URL 的正确方法吗?

\\server\\Test.html?uid=2&age=24 \\server\\Test.html?uid=2&age=24

Got it atlast.终于明白了

When using a shared folder to host a site.使用共享文件夹托管站点时。 We can use something like this.我们可以使用这样的东西。

file://folder/subfolder/Test.html?uid=2&age=24# file://folder/subfolder/Test.html?uid=2&age=24#

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM