摘要: http://shopcgi.qqmusic.qq.com/fcgi-bin/shopsearch.fcg?value=红玫瑰&artist=陈奕迅&type=qry_song&out=json&page_no=1&page_record_num=10音乐链接:http://stream1locat... 阅读全文
posted @ 2014-07-24 11:01 王者杂货铺 阅读(225) 评论(0) 推荐(0) 编辑
摘要: http://m.baidu.com/img?tn=bdjsonliulan&pu=sz%401320_2001&bd_page_type=1&tag1=%E7%BE%8E%E5%A5%B3&realword=%E7%BE%8E%E5%A5%B3&word=%E7%BE%8E%E5%A5%B3&pn... 阅读全文
posted @ 2014-05-04 16:54 王者杂货铺 阅读(301) 评论(0) 推荐(0) 编辑
摘要: /// /// OnLine 的摘要说明/// public class OnLine{ private int OFFLINEDIFF; private int REMOVEDIFF; public OnLine() { ///多少分钟不活动的用户从在线列表中... 阅读全文
posted @ 2014-04-23 14:48 王者杂货铺 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 方法-:利用excel本身的命令实现:1将excel文件中的数据转换成sql文件(1)如图所示,我们在excel中执行如下语句=CONCATENATE(“insert into table_name (col1,col2) ('”,A1,”','”B1”');”)其中table_name表示你要插入的表,col1和col2表示插入的列。(2)鼠标点住C1单元格的右下角一直拖拽下去,为所有要执行sql语句的行插入上述公式。(3)复制C列的内容到sql文件中,如下图(4)将sql文件导入到mysql中执行,我们可以采用两种方式。 阅读全文
posted @ 2014-02-10 10:32 王者杂货铺 阅读(259) 评论(0) 推荐(0) 编辑
摘要: protected void btgua_Click(object sender, EventArgs e) { DataTable dt = ds.Tables[0]; if (dt != null) { #region 操作excel Microsoft.Office.Interop.Excel.Workbook xlWorkBook; Microsoft.Office.Interop.Excel.Worksheet xlWorkSheet; xlWork... 阅读全文
posted @ 2014-01-20 15:17 王者杂货铺 阅读(1196) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Text.RegularExpressions; namespace SG_VQCDataCollection{ /// /// 通过Framwork类库中的Regex类实现了一些特殊功能数据检查 /// public class MetarnetRegex { private static MetarnetRegex instance = null; public static MetarnetRegex GetInstance() { ... 阅读全文
posted @ 2014-01-19 13:55 王者杂货铺 阅读(755) 评论(0) 推荐(0) 编辑
摘要: var jschars = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N 阅读全文
posted @ 2014-01-19 10:28 王者杂货铺 阅读(172) 评论(0) 推荐(0) 编辑
摘要: $(function () { $.getJSON("http://query.yahooapis.com/v1/public/yql?callback=?", { q: "select * from json where url='http://m.weather.com.cn/data/101210101.html'", format: "json" }, function (data) { if (data.query.results) { ... 阅读全文
posted @ 2013-12-31 16:01 王者杂货铺 阅读(227) 评论(0) 推荐(0) 编辑
摘要: C# : public string RemoveHTML(string html) { html = Regex.Replace(html, @"", "", RegexOptions.IgnoreCase); html = Regex.Replace(html, @"]*)>", "", RegexOptions.IgnoreCase); html = Regex.Replace(html, @"([\r\n])[\s]+", "", RegexOptions.Ig 阅读全文
posted @ 2013-12-06 15:42 王者杂货铺 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 客户端ip:Request.ServerVariables.Get("Remote_Addr").ToString();客户端主机名:Request.ServerVariables.Get("Remote_Host").ToString();客户端浏览器IE:Request.Browser.Browser;客户端浏览器 版本号:Request.Browser.MajorVersion;//客户端操作系统:Request.Browser.Platform;服务器ip:Request.ServerVariables.Get("Local_Addr& 阅读全文
posted @ 2013-10-12 15:30 王者杂货铺 阅读(261) 评论(0) 推荐(0) 编辑