首页 > 代码库 > Yii2中Html的使用

Yii2中Html的使用

 <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu4">
                        <li role="presentation">
                            <?= Html::a(‘公共服务‘,[‘/jid/default/index‘,‘parent‘=>‘common‘,‘module‘=>‘user‘],[‘role‘=>‘menuitem‘])?>
                        </li>
                        <li role="presentation">
                            <?= Html::a(‘保单服务‘,[‘/jid/default/index‘,‘parent‘=>‘insurancepolicy‘,‘module‘=>‘policy‘],[‘role‘=>‘menuitem‘])?>
                        </li>
                        <li role="presentation">
                            <?= Html::a(‘信息服务‘,[‘/jid/default/index‘,‘parent‘=>‘information‘,‘module‘=>‘info‘],[‘role‘=>‘menuitem‘])?>
                        </li>
                    </ul>

 

Yii2中Html的使用