jQuery編程技巧

1.將會重用的元素緩存css //badhtml var h = $('#hello').height();ajax $('#hello').css('height',h-20);緩存 //goodapp var $hello = $('#hello'),函數   h = $hello.height();post $hello.css('height',h-20);測試   2.儘可能少設置全局變
相關文章
相關標籤/搜索