Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果将 ActiveForm 放入 bootstrap modal 中,所有资产都会重新注册,导致 jquery 冲突并影响性能。我如何控制从 ActiveForm 注册的资产,注意我需要验证而不需要其他脚本。
在之前插入此代码:return $this->renderAjax()
return $this->renderAjax()
Yii::$app->assetManager->bundles = [ 'yii\bootstrap\BootstrapPluginAsset' => false, 'yii\bootstrap\BootstrapAsset' => false, 'yii\web\JqueryAsset' => false, ];