我试图使用在文档jQuery Mobile的,我怎么手动更改页面上的“pagebeforeload”事件
$(document).bind("pagebeforeload", function(event, data){
// Let the framework know we're going to handle the load.
event.preventDefault();
// ... load the document then insert it into the DOM ...
// at some point, either in this callback, or through
// some other async means, call resolve, passing in
// the following args, plus a jQuery collection object
// containing the DOM element for the page.
data.deferred.resolve(data.absUrl, data.options, page);
});
定义的方法来重定向页面,但我不知道究竟是什么PARAMS解决问题我无法在任何地方找到文档,页面参数究竟是什么?
您应该在pagebeforechange上重定向 – frequent 2013-08-14 07:09:42