如何多次包含同一个 .js 文件,但它只会将其添加到标题中一次。这个想法类似于 PHP 中的 include 和 include_once 函数。我正在使用以下 zend 框架功能。想法将不胜感激。
appendFile($src, $type = 'text/javascript', $attrs = array())
如何多次包含同一个 .js 文件,但它只会将其添加到标题中一次。这个想法类似于 PHP 中的 include 和 include_once 函数。我正在使用以下 zend 框架功能。想法将不胜感激。
appendFile($src, $type = 'text/javascript', $attrs = array())