摘要: <!--转载地址:http://www.cnblogs.com/bluedream2009/archive/2010/07/03/1770578.html--> <!doctype html public "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&g... 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 首先讲一下UNION的工作原理,当使用UNION语句时,它的功能与在结果集上SELECT DISTINCT类似,也就是说使用UNION时它会首先合并两个结果集,然后执行一个类似于SELECT DISTINCT的操作,以避免重复行的出现。 这个过程在两上结果集没有任何重复行的情况下也会进行DISTINCT处理,所以如果我们确认在UNION的两个结果集确实存在重复行,并且要消除重复行的出现时,就可以... 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(193) 评论(0) 推荐(0) 编辑
摘要: var Tools = { BrowserInfo: function() { var Sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua.match(/firefox\/([\d.]+)/)) ? S... 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(212) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Diagnostics; using System.Collections; using System.IO; using System.Net; na... 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(173) 评论(0) 推荐(0) 编辑
摘要: <regex name="Iphone Home Page"><![CDATA[{'OriginalPrice'\:'(?<OriginalPrice>.*?)','FinalPrice'\:'(?<FinalPrice>.*?)','SoldOut'\:'(?<SoldOut>.*?)','DailyDealTotalOriginalPric... 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 为了达到某种特殊的效果我们需要用Javascript动态的去更改某一个标签的Css属性。比如:鼠标经过一个图片时我们让图片加一个边框,代码可能是这样: JavaScript代码 <script type="text/javascript"> function imageOver(e) { e.style.border="1px solid red"; } function im... 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(214) 评论(1) 推荐(0) 编辑
摘要: 电脑修改了hosts文件,但是就是不管用,好不容易解决了,记录一下 根据微软的相关文档, hosts文件必须是ascii编码方式, 如果你存为unicode格式将不会被正确读取。 回到今天的主话题,修改hosts将域名指向新的ip是总是无法生效, 试过很多办法,问题却依然存在, 于是上微软的网站寻找答案, 最终发现时一个“DNS Client” 服务的问题, “DNS CLient”服务是缓存d... 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(1955) 评论(2) 推荐(0) 编辑
摘要: 很简单,直接上代码 using System; using System.Collections.Generic; using System.Text; using Newtonsoft.Json; namespace TestJson { class Program { static void Main(string[] args) { string json = "{\"a\":\"s... 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(1616) 评论(0) 推荐(0) 编辑
摘要: em这个单位,国人对这个还不太清楚, 这里简要介绍一下. 在国内网站中,包括三大门户,以及“引领”中国网站设计潮流的蓝色理想,ChinaUI等都是使用了px作为字体单位。只有百度好歹做了个可调的表率。而在大洋彼岸,几乎所有的主流站点都使用em作为字体单位,也就是可调的。没错,px比em更加容易使用,大部分读者不知道em为何物或者它相当于多少px。国外人士如此重视网站易用性(Accessibilit... 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(248) 评论(0) 推荐(0) 编辑
摘要: SELECT * from a left join b on a.id=b.id select * from a right join b on a.id=b.id select * from a inner join b on a.id=b.id select * from b inner join a on a.id=b.id select * from a,b where a.id=b.id 阅读全文
posted @ 2010-10-11 14:31 双击 阅读(191) 评论(0) 推荐(0) 编辑