源码信息

最新源码评论

  • 评论者:clundir
    clundir(用户) 发表于:2008-06-28 11:00:00

    在您的前台JS代码中有很多象$("txtAuthor")这样的代码,其中$好象就能起到象document.all或者是document.getElementById的作用,但是当我自己写的时候这样写就不行,报错说“缺少对象”,请问是怎么回事?

    3 个回复
    • 回复者:jtow
      jtow(用户)回复于:2008-06-28 18:13:00

      $ 是JS框架流行的简短写法。。比如JQERY EXT等。

    • 回复者:jtow
      jtow(用户)回复于:2008-06-28 18:15:00

      ByName: $(&quot;name&quot;)<br/>ByID: $(&quot;#name&quot;)<br/>emelent: $(&quot;#name DIV&quot;)

    • 回复者:seanming
      seanming(用户)回复于:2013-04-21 22:10:45

      引用jquery 库就行了.<span style="white-space: pre;"> </span>