并YUI有选择像jQuery的? [英] does YUI have selectors like in jQuery?

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

问题描述

YUI是否有选择的方法,如jQuery的?

Does YUI have selector methods like jQuery?

例如。让我在他们的所有div的是有联系的孩子?

e.g. get me all div's that are children of that have links in them?

推荐答案

YUI 3 (目前在preVIEW发布)有明确的JQuery一样选择:

YUI 3 (currently in preview release) has explicitly JQuery-like selectors:

Y.all('.foo').set('title', 'Go!').removeClass('off');

看看:

  • http://developer.yahoo.com/yui/3/
  • <一个href="http://developer.yahoo.com/yui/3/examples/node/nodelist.html">http://developer.yahoo.com/yui/3/examples/node/nodelist.html
  • <一个href="http://yuiblog.com/blog/2008/08/13/yui3pr1/">http://yuiblog.com/blog/2008/08/13/yui3pr1/
  • http://developer.yahoo.com/yui/3/
  • http://developer.yahoo.com/yui/3/examples/node/nodelist.html
  • http://yuiblog.com/blog/2008/08/13/yui3pr1/

我已经得到了在 OffsetConsumer.org 使用YUI 3 preVIEW版本1的好成绩,一个网站,我的工作上;接下来的YUI 3 preVIEW发行,预定出来十一月。

I've gotten good results using YUI 3 Preview Release 1 on OffsetConsumer.org, a website I'm working on; the next YUI 3 preview release is scheduled to come out in November.

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

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