私はjsファイルを使用するのに役立つ静的メソッドを作成しました(彼からアイデアを得ました:https ://stackoverflow.com/a/912989/289246 )。
@using Moj.Tg.Gen.UI.Common;
@section scripts {
@JSHelper.JSBlock("/Scripts/plugins/jquery.validate.js", "Scripts/plugins/jquery.validate.min.js")
@JSHelper.JSBlock("/Scripts/plugins/jquery.form.wizard.js", "Scripts/plugins/jquery.form.wizard.min.js")
@JSHelper.JSBlock("/Scripts/Pledges/create.js")
}
@using Moj.Tg.Gen.UI.Common;
私はこれを使用している場所ごとに記述せずにこれを機能させたいと思っています。これは可能ですか?