首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > script-keeper

script-keeper

  • 资源大小:9.74 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

ScriptKeeper keeps track of scripts. Install with NuGet! PM> Install-Package ScriptKeeper It"s an HtmlHelper extension method designed to allow a script to be registered multiple times during an MVC action. That script will be rendered only once in the final page. It"s most useful in partial views that require a JavaScript file that hasn"t been linked in the parent view. Imagine a partial view that declares a
for a model. That view requires some JavaScript file to add content to the
. But, the parent of that partial view doesn"t know that the JavaScript file needs to be included. With ScriptKeeper, the solution is simple: ``` <% Html.ScriptKeeper().Local.Register("~/script/required/by/partialview.js"); %>

文 件 列 表

script-keeper-bin-windows
Keeper.OfScripts.dll
ReadMe.txt

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP