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.尽可能少设置全局变
相关文章
相关标签/搜索