fetch('#project-url@href', function() { return Maze::load('manage/menu.link#project');//这里可以改写成Maze::object('manage/menu.link')->project }) # 日志的链接 ->fetch('#log-url@href', function() { return Maze::load('manage/menu.link#log'); }) */ ->fetch(array('.admin-manage@style', 0), 'manage/auth.manage') ->fetch(array('.admin-manage@style', 1), 'manage/auth.manage') # 另外一种形式 # 退出的链接 //->fetch('#logout-url@href', 'manage/menu.link#logout') # 首页的链接 ->fetch('#index-url@href', 'manage/menu.link#index') # 项目列表 ->fetch ( '.project-list', 'manage/menu.left', array ( 'a' => array ( 'data-target' => '.<{$v.key}>-menu', 'class++' => '<{if(Maze::input("menu") != $v.key && $v.type != 1):?> collapsed<{endif;}>', ), '.project-name' => array ( 'html' => '<{$v.name}>', ), 'i' => array ( 'class' => 'glyphicon glyphicon-folder-close', ), /* ul的内容还可以这样写,但是拼写太痛苦 'ul' => array ( 'id' => '#collapse-nav-<{$k}>', 'html' => '<{foreach($v["child"] as $i => $j){echo \'