使用 ASP.NET 的闭包库

发布于 2024-09-05 17:27:35 字数 312 浏览 5 评论 0原文

Google 的 Closure 库看起来有很多很棒的功能,但我没有看到任何与 ASP.NET 站点一起使用的示例。我只是想知道是否有人有将两者一起使用的经验以及哪些部分。是好的体验还是坏的体验?

编辑: 为了澄清一下,我问的是闭包库,而不是闭包编译器或闭包模板。例如,如果我使用 Closure Library 中的日历控件,它似乎会装饰一个文本框,以便文本可能必须在回发时转换为 DateTime。例如,其他 ASP.NET 控件将公开 SelectedDate 属性。在某些情况下,这种不完整的集成可能会令人烦恼,并且可能在某些情况下,库中的控件提供的功能足够引人注目,值得处理任何怪癖。

Google's Closure Library looks like it has a lot of great features, but I'm not seeing any examples of it used with ASP.NET sites. I'm just wondering if anyone has any experience using the two together and what parts. Is is a good or bad experience?

EDIT:
To clarify, I'm asking about Closure Library and not Closure Compiler or Closure Templates. For example, if I use the calendar control from Closure Library, it seems to decorate a text box so that text might have to be converted to a DateTime on post back. Whereas other ASP.NET controls will expose a SelectedDate property, for example. There are probably some cases where this incomplete integration is annoying, and probably some cases where the controls in the Library provide features that are compelling enough that it is worth dealing with any quirks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

感悟人生的甜 2024-09-12 17:27:35

Closure Library 与平台无关。它与以下一样有用
ASP.NET 与任何其他平台一样。

闭合模板(闭合工具家族的另一个成员),
确实有一个服务器端组件,仅限于
爪哇。然而,这并不限制 Closure Library 的实用性
以任何方式。

对于任何使用闭包库的生产应用程序,您将
需要使用 Closure Compiler 编译您的代码。要做到这一点
在本地,您需要安装 Python 和 Java。两者都不
不过,您的部署环境需要其中一些。

Closure Library is platform agnostic. It is as useful with
ASP.NET as it is with any other platform.

Closure Templates (another member of the Closure Tools family),
does have a server-side component that's limited to
Java. However, that does not limit the utility of Closure Library
in any way.

For any production application using Closure Library, you will
need to compile your code using Closure Compiler. To do this
locally, you will need to install both Python and Java. Neither
of these are needed in your deployment environment, though.

挽容 2024-09-12 17:27:35

Microsoft 提供了自己的 JavaScript 压缩器 ( http://aspnet.codeplex.com/releases/view/ 34488 )并在 Visual Studio 中拥抱和支持 JQuery(+ 智能感知和文档) 我对 ASP.NET 人们跳过 Google 的 Closure 并不感到惊讶。

With Microsoft providing their own JavaScript minifier ( http://aspnet.codeplex.com/releases/view/34488 ) and embracing and supporting JQuery (+ intellisense and documentation) in Visual Studio I am not surprised ASP.NET folks are skipping Google's Closure.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文