jQuery $(document).ready and ASP.NET MVC Partial

前端 未结 2 2101
南旧
南旧 2021-01-05 08:57

I have quite a few partials in my application, and some of them need to do some jQuery goodness at $(document).ready time.

The problem is, if I put the $(document).r

2条回答
  •  囚心锁ツ
    2021-01-05 09:12

    is there anything wrong with doing something like this:

    <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
    
    
    
    

    This is my <%: Model.name %> partial view

提交回复
热议问题