复制代码 代码如下:<?php use AsseticAssetAssetCollection; use AsseticAssetFileAsset; use AsseticAssetGlobAsset; $js = new AssetCollection(array( new GlobAsset("/path/to/js/*"), new FileAsset("/path/to/another.js"), )); // the code is merged when the asset is dumped echo $js->dump();