简体   繁体   English

如何仅使用JavaScript将数据从一页传递到另一页?

[英]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.

相关问题 如何仅使用JavaScript将表单数据从一个HTML页面传递到另一HTML页面? - How do I pass form data from one HTML page to another HTML page using ONLY javascript? 如何使用 JavaScript 将数据从一个 HTML 页面传递到另一个页面 - How can i pass data from one HTML page to another using JavaScript 如何使用PHP和Javascript将数据从一页传递到另一页? - How can I pass data from one page to another using PHP and Javascript? 如何使用Phonegap中的JavaScript将数据从一个html传递到另一个html页面? - How to pass the data from one html to another html page using JavaScript in Phonegap? 如何使用JavaScript将列表组之类的数据从一个HTML页面传递到另一HTML页面? - How can I pass data like list group from one html page to another using JavaScript? 使用C#代码通过Javascript从一页传递数据并在另一页上捕捉数据 - Pass data through Javascript from one page and catch data on another page using c# code 使用Javascript将数据从一页传递到另一页有效,但页面无法加载 - Pass data from one page to another using Javascript works but page doesn't load 如何在javascript中将值从一页传递到另一页 - how to pass values from one page to another page in javascript 将数据从一页传递到另一页 - Pass data from one page to another page 如何使用angular js将数据从一页传递到另一页? - How to pass data one page to another page using angular js?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM