prototype  框架中$$()是什么意思??

解决方案 »

  1.   

    prototype 没用过。$$() 是一个方法。方法名为$$
      

  2.   

    看样子感觉象是和jquery的$差不多,不过功能可能还没这么全面
      

  3.   

      兄弟,你是不是写错了,是想知道property标签的用法吧
      

  4.   


    $$('div')
    // -> all DIVs in the document.  Same as document.getElementsByTagName('div')!
    $$('#contents')
    // -> same as $('contents'), only it returns an array anyway.
    $$('li.faux')
    // -> all LI elements with class 'faux'
    $$('#contents a[rel]')
    // -> all links inside the element of ID "contents" with a rel attribute
    $$('a[href="#"]')
    // -> all links with a href attribute of value "#" (eyeew!)
    $$('#navbar li', '#sidebar li')
    // -> all links within the elements of ID "navbar" or "sidebar"