🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### view **新模板显示方法,加入公用的js及css** **参数** $result : V层 页面名称 ~~~ function view($result) { $c = file_get_contents ( 'includes/commonInclude.htm' ); $this->show->assign ( "#commonInclude#", $c ); $this->show->assign ( "#comboGrid#", "js/jquery/combo/business" ); $this->show->assign ( "#jsPath#", "view/template/" . str_replace ( '_', '/', $this->objPath ) . '/js' ); if (! empty ( $_GET ['skey'] )) { $this->show->assign ( "skey_", $_GET ['skey'] ); } $this->assignLang(); $this->createSubmitTag();////创建重复提交校验 $this->show->display ( $this->objPath . '_' . $this->objName . '-' . $result ); } ~~~