摘要:
$(".list").each(function(key,value){ var height = parseFloat($(value).height()); $(value).data('height',height); ... 阅读全文
摘要:
取得url ?及以前: baseUrl = url.substr(0,url.indexOf('?')+1) searchParam = searchParam.slice(0, -1);//去掉最后一位 $("ul.nav").on("click","li",function(e){ var hr 阅读全文
摘要:
http://www.alloyteam.com/2012/10/common-javascript-design-patterns/ 阅读全文