要解决按下浏览器后退按钮返回的问题,关闭会话后不会再次启动而不要求输入数据,请添加以下代码。
$this->output->set_header('Last-Modified:' . gmdate('D, d M Y H:i:s') . 'GMT');
$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');
$this->output->set_header('Cache-Control: post-check=0, pre-check=0', false);
$this->output->set_header('Pragma: no-cache');
但是当我按下浏览器的后退按钮时,我收到确认表格重新提交的消息。 抱歉,我的英文不好
答案 0 :(得分:-1)
- (void)viewDidLoad {
[super viewDidLoad];
anotation = [[BMKPointAnnotation alloc]init];
CLLocationCoordinate2D coor;
coor.latitude = 22.2593;
coor.longitude = 70.7777;
anotation.coordinate = coor;
anotation.title = @"this is rajkot";
[mapView addAnnotation:anotation];
mapView.delegate = self;
}