如果在yii中,需要自定义jQuery版本的时候,要这么做:
在web.php中的components模块下,加入:
'assetManager' => [ 'bundles' => [ & nbsp; 'yii\web\JqueryAsset' => [ 39;sourcePath' => null, // 一定不要发布该资源 'js' => [ &n bsp; '//libs.baidu.com/jquery/2.0.0/jquery.min.js', &nb sp; ] ], ], ],
如果在yii中,需要自定义jQuery版本的时候,要这么做:
在web.php中的components模块下,加入:
'assetManager' => [ 'bundles' => [ & nbsp; 'yii\web\JqueryAsset' => [ 39;sourcePath' => null, // 一定不要发布该资源 'js' => [ &n bsp; '//libs.baidu.com/jquery/2.0.0/jquery.min.js', &nb sp; ] ], ], ],
评论前必须登录!
注册