没有HTML的jQuery UI [英] jQuery UI without HTML

查看:77
本文介绍了没有HTML的jQuery UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个项目(开源)为 jQuery UI 提供小部件和插件,但允许我们使用它们而不设置任何HTML?



有点像 Ext-js Sproutcore ,但没有复杂性和缺乏流动性,更像卡布奇诺,但不需要Mac和来自Objective-j的可怕加载时间(它也没有IDE支持)。此外,更像 Ukijs ,但有更多的小部件。有点像睡衣 GWT ,但不缺少小部件,预编译步骤和/或Java。例如:

  uki({
view:Button,text:Hello world!,
rect:120 80 180 24,
click:function(){alert(this.text());
})。attachTo(document.getElementById(test));

我采用jQuery的原因是因为它是唯一支持所有 30个基本控件(与

我不认为合适的DSL存在于现在,我能想到的最接近的就是CoffeeScript b
$ b

http://jashkenas.github.com/coffee-script/



这也是一个很好的起点。 / p>

Is there a project (open source) that takes the widgets and plugins for jQuery UI but allows us to use them without setting up any HTML?

Kinda like Ext-js and Sproutcore, but without the acidental complexity and lack of fluidity, and more like Cappuccino, but without requiring a Mac and the horrible load times from Objective-j (which also has no IDE support). Also, more like Ukijs, but with more widgets. And kinda like Pyjamas and GWT, but without the lack of widgets, pre-compiling step, and/or Java. For example:

uki({
  view: "Button", text: "Hello world!",
  rect: "120 80 180 24",
  click: function() { alert(this.text());
}).attachTo( document.getElementById("test") );

The reason I'm taking jQuery is because it is the only web framework that supports all 30 essential controls (given with enough plugins).

解决方案

I don't think a suitable DSL exists at the moment, the closest thing I can think of is CoffeeScript

http://jashkenas.github.com/coffee-script/

It would also be a good starting point to build from.

这篇关于没有HTML的jQuery UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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