JAVA、PHP、前端、APP、网站开发 - 开发技术学习

开发技术学习 » 编程开发 » yii 禁用默认加载的jquery与bootstrap

yii 禁用默认加载的jquery与bootstrap

此文被围观2772 日期: 2016-06-16 分类 : 编程开发  标签:  ···

要配置文件main.php中查看

'assetManager' => [
    'bundles' => [
        'yiiwebJqueryAsset' => [
            'js'=>[]
        ],
        'yiibootstrapBootstrapPluginAsset' => [
            'js'=>[]
        ],
        'yiibootstrapBootstrapAsset' => [
            'css' => [],
        ],

    ],
],


UPDATE

As Soju mentioned in comments, another alternative way would be disabling these files in AppAsset class, which is located in ./assets/, then remove the following lines:

public $depends = [
   'yiiwebYiiAsset',              #REMOVE
   'yiibootstrapBootstrapAsset',  #REMOVE
];


参考地址:http://blog.csdn.net/xmlife/article/details/49965277

站点声明:部分内容源自互联网,为传播信息之用,如有侵权,请联系我们删除。

© Copyright 2011-2024 www.kfju.com. All Rights Reserved.
超级字帖 版权所有。 蜀ICP备12031064号      川公网安备51162302000234