摘要:
function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expir... 阅读全文
摘要:
鉴于经常有人被该贴误导,所以重新更新一下checkbox选中判断:jquery官网是这么写的:$( elem ).attr( "checked" ) (1.6) "checked" (String) Initial state of the checkbox; does not change$( elem ).attr( "checked" ) (1.6.1+) "checked" (String) Will change with checkbox state$( elem ).attr( "check 阅读全文