以下に定義されている外部JS関数をtest.js内に保持しています
function InvokeSupport(ID, TimeStamp, Hash) {
var sUrl = '<%= System.Configuration.ConfigurationManager.AppSettings["URL"] %>' + "?uid=" + ID + "&t=" + TimeStamp + "&hash=" + Hash;
window.open(sUrl, "Support", null, false);
}
私のasp.netページには、次のものがあります。
<script type="text/javascript" src="../../../scripts/test.js"></script>
<div class="User">
<span class="UserName"><button type="submit" title="Help!" onclick="InvokeSupport()" class="Class1"></button> </span>
</div>
問題
InvokeSupport関数は未定義として返され、関数を機能するASP.netページに配置しない限り機能しません。同じリポジトリ内の他のファイルが正常に機能しているので、javascriptファイルへのリンクは正しいです。
私が間違っていることについて何か考えはありますか?