js 时间-价格-排序,静态页面排序案例 冒泡排序实例 在项目中用到的一个例子,分享一下。 转自:http://blog.csdn.net/yjflinchong/article/details/7301164 var sort = { sortdata : '', //排序之前必须先填充原始数据 //来源我的博客:http://yijianfengvip.blog.163.com/blog/static/1752734322011102145823/ flag : '', sortDataByType : function(type) {//1:时间降序2:时 Read More
posted @ 2012-02-28 13:10 Jacky Cheng Views(2809) Comments(0) Diggs(0)
前段时间,由于在项目中不小心把同一个枚举中的两个不同项写成了同一个值,项目编译正常。如下:view plainenumMyEnum{A=1,B=1}好奇之下写了代码进行验证:view plainenumMyEnum{A,B=2,C,D=2,E,F=1,G}竟然发现:第一点:view plaininta=(int)MyEnum.A;//a=0intc=(int)MyEnum.C;//c=3inte=(int)MyEnum.E;//e=3intg=(int)MyEnum.G;//g=2 (1)、如果第一项没指定值,默认为0。 (2)、项的值在枚举中不一定唯一。 (2)、如果没指定项的值,后面项的值 Read More
posted @ 2011-07-22 17:26 Jacky Cheng Views(537) Comments(1) Diggs(1)
共包含日期格式,url提取及分解,对象三部分内容view plain<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content=" Read More
posted @ 2011-07-22 17:24 Jacky Cheng Views(245) Comments(0) Diggs(0)
作为一个刚入门Silverlight的人来说,学习新知识就要做好笔记。我是刚入门。在不断在摸索。写这篇文章是让打算入门和刚入门的人有所了解Silverlight。这篇文章主要是讲的Silverlight 2种查询的方法。步入正题第一步:引入命名空间System.Windows.Controls.Data(后面会讲有什么用)第二步:创建文件夹和相应的类。下面是我写的对应的文件夹和类第三步编写内容。首先是 model文件夹下的类 public class Student { public string Name { get; set; } public int Age { get; set; } Read More
posted @ 2011-07-22 17:20 Jacky Cheng Views(225) Comments(0) Diggs(0)
不拘一格编程序——循环打印算法 Read More
posted @ 2011-07-22 17:19 Jacky Cheng Views(228) Comments(0) Diggs(0)
第一篇:ajax准备开始篇摘要:在此之前我们需要做一下简单的ajax准备工作,但你必须要具备基本的html,javascript,dom编写能力.否则这个ajax教程你读起来会很吃力.我的目的是通过这份教程.可以让你在你的网页中使用ajax技术实现,读取,添加,修改,删除数据的操作.也许你是只老鸟对我写的这些不屑一顾,但我还是希望你能看 下该教程中演示的一些例子,没准会有地方吸引你!学习地址:ht... Read More
posted @ 2010-08-23 10:47 Jacky Cheng Views(786) Comments(1) Diggs(1)
一个好的数据库产品不等于就有一个好的应用系统,如果不能设计一个合理的数据库模型,不仅会增加客户端和服务器段程序的编程和维护的难度,而且将会影响系统实际运行的性能。一般来讲,在一个MIS系统分析、设计、测试和试运行阶段,因为数据量较小,设计人员和测试人员往往只注意到功能的实现,而很难注意到性能的薄弱之处,等到系统投入实际运行一段时间后,才发现系统的性能在降低,这时再来考虑提高系统性能则要花费更多的人... Read More
posted @ 2010-08-23 10:43 Jacky Cheng Views(485) Comments(1) Diggs(0)
protected void Page_Load(object sender, EventArgs e) { binds(); string type = string.Empty; int num = 0; type = "▲"; int count = 0; string[] all = new string[] { "▲", "☆" }; for (int... Read More
posted @ 2010-03-22 00:42 Jacky Cheng Views(414) Comments(1) Diggs(0)
/Files/chengyq/111.rar Read More
posted @ 2010-02-27 11:49 Jacky Cheng Views(232) Comments(1) Diggs(0)
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<%@WebHandlerLanguage="C#"Class="Handler"%>23usingSystem;4usingSystem.Web;5usingSystem.Collec... Read More
posted @ 2009-12-09 16:13 Jacky Cheng Views(1755) Comments(4) Diggs(0)