如何在jquerymobile中将值从一个页面传递到另一个页面? [英] How to pass values from one page to another in jquerymobile?

查看:98
本文介绍了如何在jquerymobile中将值从一个页面传递到另一个页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

jQuery移动传递参数从一页到另一页

我需要将值从一个页面html传递到另一个html页面。传递价值的最佳方式是什么。任何人都可以解释我如何实现这一点。

I need to pass values from one page html to another html page. what is the best way to pass the value. can anyone explain me how to achieve this.

推荐答案

你可以通过表格,网址和会话传递变量。您可以使用现有Web应用程序中使用的所有方法将数据从1页传递到另一页。或者您可以利用HTML5的本地存储,这是一种现代且更快速的存储安全数据的方式

you can pass the variables through forms, urls and session. You can use all the methods you use in existing web applications to pass data from 1 page to another. or you can utilize the local storage of HTML5 which is a modern and faster way of storing the secure data

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

您可以在以下链接中找到有关HTML5本地存储空间的更多信息

You can find more information about HTML5's local storage on the following link

http://www.w3schools.com/html5/html5_webstorage.asp

这篇关于如何在jquerymobile中将值从一个页面传递到另一个页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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