list($path, $webPath) = Yii::$app->getAssetManager()->publish(__DIR__."/assets);
$this->getView()->registerJsFile($webPath);
如何在yii2 小部件里加载js文件
最新推荐文章于 2022-04-13 12:54:59 发布
list($path, $webPath) = Yii::$app->getAssetManager()->publish(__DIR__."/assets);
$this->getView()->registerJsFile($webPath);