ajaxphp手机
/*AJAX获取区域信息*/
if($act == 'ajax_get_region')
{
$region_id = intval($_GET['region_id']);
$type = intval($_GET['type']);
$region = get_regions($type, $region_id);
//print_r($region);
$html = $onclick = '';
switch ($type){
case '1': $onclick = 'province'; break;
case '2': $onclick = 'city'; break;
case '3': $onclick = 'area'; break;
}
if($region){
foreach ($region as $v){
$html.="{$v['region_name']}";
}
}
echo $html;
exit;
}
第二次点击修改地址是,就出现这样的bug,求大神怎么破