将信息传递到Javascript的下一页的方法 [英] Ways to pass info to the next page in Javascript

查看:32
本文介绍了将信息传递到Javascript的下一页的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道将信息传递到Javascript的另一种方法的一种方法是使用get请求并将所有内容放在URL上.但是还有其他方法吗?

I know one way to pass information to another page in Javascript is to use a get request and put everything on the URL. But are there any other ways?

JavaScript是否可以读取表单上的发布请求或数据?有没有使用浏览器缓存的方法,或者某种方式让页面A管理和操纵页面B的加载?

Is it possible for the Javascript to read post requests or data on a form? Are there any ways to use browser cache or somehow have page A manage and manipulate the loading of page B?

推荐答案

实际上,我认为最好的答案是store.js

Actually, I think the best answer is store.js https://github.com/frankkohlhepp/store-js. It uses localstorage or other solutions on older browsers.

这篇关于将信息传递到Javascript的下一页的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆