文檔

2010-06-03 63 views
0

我知道,如果你在一個視圖中寫:文檔

<g:javascript src="myscript.js" /> 
<g:javascript src="myscript.js" /> 
<g:javascript src="myscript.js" /> 

<!-- other try --> 
<g:javascript library="myscript" /> 
<g:javascript library="myscript" /> 
<g:javascript library="myscript" /> 

它將out輸出:

<script type="text/javascript" src="/vip/js/myscript.js"></script> 
<script type="text/javascript" src="/vip/js/myscript.js"></script> 
<script type="text/javascript" src="/vip/js/myscript.js"></script> 

<!-- other try --> 
<script type="text/javascript" src="/vip/js/myscript.js"></script> 

結論:與庫它會嘗試只包括一次。

我一直試圖找到沒有成功的文檔。

你有沒有指針?

回答