'assetManager' => [ // uncomment the following line if you want to auto update your assets (unix hosting only) 'linkAssets' => true, 'bundles' => [ 'yiiwebJqueryAsset' => [ 'js' => [YII_DEBUG ? 'jquery.js' : 'jquery.min.js'], ], 'yiiootstrapBootstrapAsset' => [ 'css' => [YII_DEBUG ? 'css/bootstrap.css' : 'css/bootstrap.min.css'], ], 'yiiootstrapBootstrapPluginAsset' => [ 'js' => [YII_DEBUG ? 'js/bootstrap.js' : 'js/bootstrap.min.js'], ], ],
添加一个 'linkAssets'=>true