English 中文(简体)
如何将价值从一页传递给一页? [复制]
原标题:How to pass values from one page to another in jquerymobile? [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
jQuery mobile passing parameter from one page to another

我需要把价值从第html页上传到另一个第html页。 达到这一价值的最佳途径是什么。 任何人都可以解释我如何做到这一点。

最佳回答

您可以通过表格、斜体和届会传递变量。 你可以利用现有网络应用的所有方法将数据从1页传送到另一页。 或您可以利用当地超文本5的储存,这是储存安全数据的一种现代、快捷的方式。

localStorage.lastname="Smith";
document.getElementById("result").innerHTML="Last name: "+ localStorage.lastname;

你们可以找到更多信息,了解维罗维托5号地方储存在以下链接上的情况:

问题回答

You can use the html5 local or session storage api to store the small data across the pages.

2. 确定会议储存的价值

window.sessionStorage.setItem( key ,  value );

获取价值

<代码>sessionStorage.get 项目(关键);





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签