- ">首页
$_limit = "10";
$_typeid = intval('1');
$_category = new app\index\model\CategoryModel();
$_navlist = $_category->getCategory('', $_typeid, true);
$_navlist = $_category->unlimitedForLayer($_navlist);
foreach($_navlist as $autoindex => $nav):
$_limit_list = explode(',', $_limit);
if(count($_limit_list) > 1){
if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue;
} else{
if($autoindex >= $_limit) break;