Ext.select vs Ext.Selects? - Ext JS

本文讨论了ExtJS中Element类的select方法使用问题。作者询问了关于Element.Selects与Element.select之间的区别,并收到了回复指出文档中的错误,实际上只存在Element.select方法用于选择元素。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Perhaps a dumb question, but what's the difference between the two public methods of Element?

When should I use one over the other?

Thanks...martin
Reply With Quote
  #2  
Old 02-23-2007, 11:52 PM
Default

Martin,

Where are you seeing Element.Selects? I don't think that's valid, and it does not exist in ext-all.js. Element.select is what you should be using.

Brian
__________________
Brian Moeskau
FAQ / Tutorials / User Extensions / Enhanced Forum Search
Reply With Quote
  #3  
Old 02-24-2007, 08:54 AM
Default

In the documentation, click on element, 4th public method:

Selects(String/Array selector, [Boolean unique]) : CompositeElementLite/CompositeElement Element
<static> Selects elements based on the passed CSS selector to enable working on them as 1.
Reply With Quote
  #4  
Old 02-24-2007, 10:04 AM
Default

Sorry, that was a documentation parsing error. It has been corrected.
Reply With Quote
  #5  
Old 02-24-2007, 08:56 PM
Default

I still see it in Alpha 2 rev 1...martin
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值