草庐IT

headerstuff

全部标签

php - 如何删除 joomla 中的所有 javascript?

我在这里使用代码...get('guest')==1){$headerstuff=$this->getHeadData();$headerstuff['scripts']=array();$this->setHeadData($headerstuff);}?>但是当运行代码是模板加载所有javascript时,如何修复它删除模板joomlaheader中的所有javascript 最佳答案 要删除可在模板中使用的脚本:$doc=JFactory::getDocument();unset($doc->_scripts[$this->b