phonegap backbutton,返回事件
document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady(){ document.addEventListener("backbutton",back,false); } function back(){alert("back...");}
注意,document.addEventListener("backbutton",back,false);一定要写在onDeviceReady中。。