0
我正在使用jquerymobile/jquery/js和开发网页。我想将数据从一个页面传递到另一个页面。jquery mobile两个htmls与单个页面模板之间传递数据
jquerymobile中的多页面模板我能够实现这一点,但帮助我与单个页面模板。请请我不想使用全局变量或cookie或localstorage或使用url。试图通过使用Jquery.data,但无法实现这一点。请张贴一个例子。
我有两页。在第二页连接“pagebeforeshow”事件,我没有得到b1按钮对象,而是变为null。
$('#page2').live('pagebeforeshow',function(event, data)
{
console.log (data.prevPage.attr('#b1'));
});