0
這是我的JS文件: ezee.se/quickfilter.jsJavascript:如何調用這個內部函數?
在我打電話像這樣一個外部文件:
<script type="text/javascript" src="quickfilter.js"></script>
function refresh_the_list2()
{
quickfilter_mafiaafire.request_xml();
var status = document.getElementById("refre");
status.innerHTML = 'Done! Use the above link to view the blocklist.';
}
,但我不斷收到此錯誤:
Error: quickfilter_mafiaafire.request_xml is not a function
我該如何叫它,所以我不得到那個錯誤?
謝謝!在你的代碼
你必須包括'主HTML quickfilter.js' 。您不能將其包含在另一個JavaScript文件中。 '