2011-09-12 28 views

回答

14

通過<h:outputScript>target="head"包含該JS代碼的靜態部分作爲獨立的JS文件。它只會被渲染成<h:head>一次。

<cc:implementation> 
    <h:outputScript name="js/myCompositeHelper.js" target="head" /> 
    ... 
</cc:implementation>