這個連結的做法比較看的董
1. 在主板 header加section @ RenderSection(名字)
2. 在要實作的頁面加入 @section 名字{ .......jacascript寫在這邊...... }
參考連結 :
https://teusje.wordpress.com/2012/02/16/asp-net-mvc-place-javascript-from-a-view-inside-the-head-section-by-using-sections/
文章標籤
全站熱搜