阅读背景:

在使用部分视图的Asp.net MVC应用程序中放置javascript的最佳位置

来源:互联网 

What is the best place for javascript that is specific to a partial view? For example, if I have a partial view (loaded via ajax call) with some divs and I want to turn those divs into an accordian, would it be better put the $("#section").accordion() in script tags inside of the partial view, or in a .js file in the function that retrieves that partial view and inserts it into the DOM? What is the best place for javascript that is s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: