最简单的非模态对话框与jQuery? [英] lightest non-modal dialog with jQuery?

查看:633
本文介绍了最简单的非模态对话框与jQuery?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个演示:

http: //jqueryui.com/demos/dialog/

但对我来说太大了。

全部包含二千行。

我想在一个不到一千行的单个文件中有一个。

I'd like to have one in a single file with less than 1 thousand lines.

推荐答案

如果您厌恶了高数据隐含的复杂性,您需要克服这一点,否则您最终将会执行 voodoo ,从零开始重新实现缺乏信任,并选择稍微复杂而又最差的图书馆。

If you have an aversion to the complexity implied by a high line-count, you need to get over this or you'll end up doing voodoo, reimplementing from scratch for lack of trust, and choosing slightly-less-complex-looking but ultimately inferior libraries.

我说这是因为你要求更少的代码行,这是一个很好的衡量标准的复杂性和可维护性,但对于重要的事情,如良好的设计和良好的文档来说,这是一个很差的指标。即使大小很少是一个问题,如果你使用最小化的代码。

I say this because you ask for fewer lines of code, which is a good metric for complexity and maintainability, but a poor metric for important things like good design and good docs. Even size is seldom an issue, if you use minified code.

深呼吸,只包含文件:)

Take a deep breath and just include the file :)

这篇关于最简单的非模态对话框与jQuery?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆