このシナリオではよくわからないことが2つあります
まず、この形式のJavaScriptがあります
function Allocate()
{
this.Name = $("allocateName");
this.AddAllocation = $("addAllocation");
this.setCustom= $("setCustom");
}
... some other initializations here
Allocate.prototype.EnableAllocations = function() {
this.enableAllAlloactions();
this.setCustomAllocations();
}
これは単なる例ですが、これはJavascriptのある種のクラスですか?これはAllocate.jsというファイルにあります。
私の質問は次のとおりです。
でEnableAllocationsを呼び出すとしたら、Page.ClientScript.RegisterClientScriptBlock(...);
どうすればよいですか?