1.header 导航栏上加“后退”按钮
jQueryMobile的库更新到最新版1.2之后,header 导航栏上的“后退”按钮统统不见了,打开它很简单,需要在页面源代码的 page 中加上 data-add-back-btn="true" 。
同时页面的代码中加上一句 js 代码即可:
$(document).bind("mobileinit", function() { $.mobile.page.prototype.options.addBackBtn = true; });