我比较喜欢原味的javascript,但是日常开发中还是“可耻”的拿起了jquery,我擦

解决方案 »

  1.   

    jquery  可以提高你的开发效率    所以公司 一般建议你用 js 类库 来开发  
      

  2.   

    我不明白document.getElementById比$('#')好在哪里?
    不明白document.getElmentsByTagName,for()比$('.class')强在哪里。
    我也擦
      

  3.   

    http://news.cnblogs.com/n/110896/
    看完这篇文章你会明白!!!
      

  4.   

    迷上了jquery,自己鼓捣的框架比jquery差太远,extjs也用烦了,当然后台用extjs架设还是挺好的。
    我用jquery常常用到的一个简单的模式就是:
    what -> dowhat(how)
    比如
    $('#abc').show('slow')
    $('#abc').remove()
    完全和脑袋的想法合拍,然后又不用过多考虑浏览器兼容问题。
      

  5.   

    现在用jquery多一写~ 因为他方便, 但是也不反对document, 毕竟有的时候必须要用   
      

  6.   

    9楼说的操作我已经想出来了var obj=document.getElementById("aaa");
        function show()
        {
         this.style.display="block";
         this.style.width="0px";
         this.style.height="0px";
         for(var i=0;i<=100;i++)
         {
         (function(){
         var pos=i;
         setTimeout(function(){
         obj.style.width=pos*2+"px";
         obj.style.height=pos+"px";
         },(pos+1)*20)
         })();
         }
        }
        show.call(obj);
        var del=document.getElementById("btn");
        del["onclick"]=function(){
         obj.parentNode.removeChild(obj);
        }
    但是不知道为什么
    obj.style.width=pos*2+"px";
    obj.style.height=pos+"px";
    这里上下文对象this没用,,此处十分费解。。
      

  7.   



    js报错——Unterminated string constant

    大虾帮帮忙