2014年10月29日
摘要: 活动主题 获得 活动主题 ... 阅读全文
posted @ 2014-10-29 14:40 许广 阅读(271) 评论(0) 推荐(0) 编辑
  2014年10月27日
摘要: 我们常用的在a标签中有点击事件:1. a href="javascript:js_method();"这是我们平台上常用的方法,但是这种方法在传递this等参数的时候很容易出问题,而且javascript:协议作为a的href属性的时候不仅会导致不必要的触发window.onbeforeunload... 阅读全文
posted @ 2014-10-27 16:35 许广 阅读(168) 评论(0) 推荐(0) 编辑
  2014年10月20日
摘要: 后台:public void BindData() { List DataList = new List(); DataList = DBTools.GetPublishedWeiBo(user._id.ToString()); Repeater_PubData.DataSource = DataL... 阅读全文
posted @ 2014-10-20 14:41 许广 阅读(391) 评论(0) 推荐(0) 编辑
  2014年9月13日
摘要: 算法如下:基姆拉尔森计算公式:W= (d+2*m+3*(m+1)/5+y+y/4-y/100+y/400) mod 7在公式中d表示日期中的日数,m表示月份数,y表示年数。注意:在公式中有个与其他公式不同的地方:把一月和二月看成是上一年的十三月和十四月,例:如果是2004-1-10则换算成:2003... 阅读全文
posted @ 2014-09-13 10:15 许广 阅读(2544) 评论(0) 推荐(0) 编辑
  2014年7月23日
摘要: 查询表信息:sp_help 'dbo.T_User';修改columnName 字段为空alter table dbo.T_User alter column columnNamedatetime null;修改columnName 默认值ALTER TABLE dbo.T_User ADD CON... 阅读全文
posted @ 2014-07-23 11:37 许广 阅读(274) 评论(0) 推荐(0) 编辑
  2014年7月3日
摘要: C# 写日志到文件 using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.IO;namespace psms.util{ class Log ... 阅读全文
posted @ 2014-07-03 23:29 许广 阅读(378) 评论(0) 推荐(0) 编辑
摘要: mysql 语句不可以有单引号,要把单引号替换为双引号! 阅读全文
posted @ 2014-07-03 22:24 许广 阅读(151) 评论(0) 推荐(0) 编辑
  2014年7月1日
摘要: 1、在需要取得formhash的页面加入下面js代码,还需要jquery库。2、在search.php修改最后面部分,if(trim($_GET['hash']) && !empty($_GET['hash'])){ die($_GET['jsoncallback'] . '(' . json_en... 阅读全文
posted @ 2014-07-01 14:33 许广 阅读(168) 评论(0) 推荐(0) 编辑
  2014年6月28日
摘要: 0) { $t = array(); $content = fread($fp,filesize('ipdata.txt')); $t = split("\n",$content); $i = sizeof($t); } $record = $i.' ip: '.$... 阅读全文
posted @ 2014-06-28 14:58 许广 阅读(526) 评论(0) 推荐(0) 编辑
  2014年6月19日
摘要: functionrequest(paras){varurl=location.href;varparaString=url.substring(url.indexOf("?")+1,url.length).split("&");varparaObj={}for(i=0;j=paraString[i]... 阅读全文
posted @ 2014-06-19 17:25 许广 阅读(201) 评论(0) 推荐(0) 编辑