摘要:
https://github.com/jrallison/jquery-scrollbox-js 滚动条 阅读全文
摘要:
javascript:var i=document.createElement("IMG");i.src="/favicon.ico";document.body.appendChild(i); 阅读全文
摘要:
$("#tabs li").click( function(){ $('#tabs').attr('rel',$(this).index()); $(this).addClass("cur").siblings().removeClass("cur"); }); 阅读全文
摘要:
console.log($(this).attr('class').split('delete_logo')[1]);//获取相同delete_logo下的第二个class 名append 或 after x、新元素 利用 live绑定事件 阅读全文
摘要:
页面追加元素时,第一次执行无法获取到动态加载到的资源。可以绑定事件让其有新事件生效。获取此新元素必须页面加载完成进行新的动作时方可获取。 console.log($(this).attr('class').split('delete_logo')[1]);//获取相同delete_logo下的第二个 阅读全文
摘要:
http://coolshell.cn/articles/17634.html 阅读全文