[英]how to pass data from one page to another page using only javascript?
Hi there Folks, i would like to know that when we would like to transfer data from one page to another using java script and not refreshing the page. 嗨,大家好,我想知道,当我们想使用Java脚本而不是刷新页面将数据从一个页面传输到另一页面时。 What are the steps or to say the perfect step to do so because i have been on this problem for at least 2-3 days.
这样做的步骤是什么,或者说是完美的步骤,因为我在此问题上至少存在2-3天。 All efforts are futile, the code i used are not processing perfectly.
所有的努力都是徒劳的,我使用的代码无法完美处理。 If there is a way to strictly use java script method and post method and send data to another page without refreshing.
如果有一种方法可以严格使用java脚本方法和post方法并将数据发送到另一个页面而无需刷新。 The page does not refresh is done but the data is not getting transferred to another page.
该页面没有刷新完成,但是数据没有被传输到另一个页面。
If any great programmer dudes can help me with an example.pls. 如果有任何优秀的程序员帅哥可以为我提供example.pls。
I think you can use Local Storage or Session Storage provided by Javascript. 我认为您可以使用Javascript提供的本地存储或会话存储。 It saves your data for later use.
它保存您的数据以备后用。 I use it on my project and so far so good.
我在项目中使用了它,到目前为止效果很好。
Here's the link for the manual: http://www.w3schools.com/html/html5_webstorage.asp 这是手册的链接: http : //www.w3schools.com/html/html5_webstorage.asp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.