2019-04-08 15:56:29 1058次浏览 0条回答 0 悬赏 50 金钱

在控制器里使用 renderPartial 渲染页面,如何加载前端资源,想加载 bootstrap 样式,使用 $this->registerJsFile 不起作用,浏览器查看代码如下图

css.png

补充于 2019-04-08 16:03

原来 renderPartial 不加载资源,换成 renderAjax$this->registerCssFile 就起作用了

    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
Alex_J
经理

Alex_J

注册时间:2018-08-02
最后登录:2022-08-15
在线时长:26小时42分
  • 粉丝2
  • 金钱925
  • 威望0
  • 积分1185

热门问题