久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      yii2 怎么去掉jquery

      yii2去掉jquery的方法:1、編輯AppAsset.php文件,注釋掉變量$depends里的“yiiwebYiiAsset”值;2、編輯main.php文件,在字段“components”下面添加配置為“'yiiwebJqueryAsset' => ['js' => [],'sourcePath' => null,],”即可去掉jquery腳本。

      yii2 怎么去掉jquery

      本文操作環(huán)境:Windows10系統(tǒng)、yii2.0版、Dell G3電腦。

      yii2 怎么去掉jquery?

      Yii2 中徹底禁用掉自帶的 Yii、JQuery 和 Bootstrap 腳本 [ 2.0 版本 ]

      默認(rèn)情況下,Yii2 會(huì)自動(dòng)加載 Yii、JQuery 和 Bootstrap 等腳本和樣式,但有時(shí)項(xiàng)目中可能并不需要這些庫(kù),或者使用其他版本;下面介紹如何去掉這些庫(kù)腳本和樣式。

      ▪ 去除 Yii.js 相關(guān)腳本

      編輯 frontendassetAppAsset.php 文件,注釋掉變量 $depends 里的 'yiiwebYiiAsset' 值。

      編輯 frontendconfigmain.php 文件,在字段 'components' 下面添加配置:

      'assetManager' => [  'bundles' => [      'yiiwebYiiAsset' => [          'js' => [],  // 去除 yii.js          'sourcePath' => null,  // 防止在 frontend/web/asset 下生產(chǎn)文件      ],                               'yiiwidgetsActiveFormAsset' => [          'js' => [],  // 去除 yii.activeForm.js          'sourcePath' => null,  // 防止在 frontend/web/asset 下生產(chǎn)文件      ],               'yiivalidatorsValidationAsset' => [          'js' => [],  // 去除 yii.validation.js          'sourcePath' => null,  // 防止在 frontend/web/asset 下生產(chǎn)文件      ],  ], ],
      登錄后復(fù)制

      ▪ 去除 JQuery 腳本

      編輯 frontendconfigmain.php 文件,在字段 'components' 下面添加配置:

      'assetManager' => [     'bundles' => [         'yiiwebJqueryAsset' => [             'js' => [],  // 去除 jquery.js             'sourcePath' => null,  // 防止在 frontend/web/asset 下生產(chǎn)文件         ],     ], ],
      登錄后復(fù)制

      • 去除 Bootstrap 庫(kù)

      編輯 frontendassetAppAsset.php 文件,注釋掉變量 $depends 里的 'yiibootstrapBootstrapAsset' 值。

      編輯 frontendconfigmain.php 文件,在字段 'components' 下面添加配置:

      'assetManager' => [ 'bundles' => [     'yiibootstrapBootstrapAsset' => [         'css' => [],  // 去除 bootstrap.css          'sourcePath' => null, // 防止在 frontend/web/asset 下生產(chǎn)文件      ],     'yiibootstrapBootstrapPluginAsset' => [         'js' => [],  // 去除 bootstrap.js          'sourcePath' => null,  // 防止在 frontend/web/asset 下生產(chǎn)文件      ],  ],
      登錄后復(fù)制

      ],

      推薦:《yii教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)