//选择地址
public function getAddress(){
$this->model = M('China');
$type = I('post.type');
switch ($type){
case 1: //选择一级省份
$this->getFirst();
break;
case 2: //选择二级市
$pid = I('post.pid');
$this->getSecond($pid);
break;
case 3: //选择三级县区
$cid = I('post.pid');
$this->getThird($cid);
break;
default:
break;
}
}
php免费学习视频:立即使用
踏上前端学习之旅,开启通往精通之路!从前端基础到项目实战,循序渐进,一步一个脚印,迈向巅峰!










