摘要:
用encodeURIComponent对要提交的中文进行编码 阅读全文
该文被密码保护。 阅读全文
摘要:
phpheader("Location: http://blog.csdn.net/abandonship"); jslocation.href='http://www.xinwaihui.com' 阅读全文
摘要:
由于chrome,safari,opara 浏览器还未支持自动 "设为首页" & "加入收藏". 所以我们只能try, catch一下, 给个错误提示! 也算完美了.另外ie中, 很多人也碰到过 它window.external.addFavorite. 时会报错的问题. 所以俺也只好抛出提示信息了.加入收藏:/** author : 2010-12-27 11:33:02 teresa* discription: add favorite*/function addFavorite(){ if (document.all){ try{ wind 阅读全文
摘要:
解决办法 给图片加个style position:relative 阅读全文
摘要:
今天select * from 表名 where to_days(时间字段名) = to_days(now());昨天SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) - TO_DAYS( 时间字段名) <= 17天SELECT * FROM 表名 where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(时间字段名)近30天SELECT * FROM 表名 where DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date(时间字段名)本月SELECT * FROM 阅读全文
摘要:
在之前加一句echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'; 阅读全文
摘要:
QQ临时会话 在线状态http://wp.qq.com/index.html 阅读全文
摘要:
$(document).ready(function(){alert($(window).height()); //浏览器当前窗口可视区域高度alert($(document).height()); //浏览器当前窗口文档的高度alert($(document.body).height());//浏览器当前窗口文档body的高度alert($(document.body).outerHeight(true));//浏览器当前窗口文档body的总高度 包括border padding marginalert($(window).width()); //浏览器当前窗口可视区域宽度alert($(d 阅读全文
摘要:
格式化代码 shift+alt+F 阅读全文