摘要:
Some of you read that code and are thinking to yourself, “String concatenation!? Are you kidding?” Yeah, we could use a StringBuilder, but for a small number of concatenations, concatenating a string ... 阅读全文
posted @ 2010-12-14 15:17
.net's
阅读(310)
评论(0)
推荐(0)
摘要:
Let’s start off by demonstrating how to write a test of the Default route included in Global.asax.cs. This demonstration assumes that when you create a new project using the ASP.NET MVC Web Applicati... 阅读全文
posted @ 2010-12-14 14:34
.net's
阅读(406)
评论(0)
推荐(0)
摘要:
可扩展的简易点击展开/关闭效果,分别用原生JavaScript和jQuery实现.使用方法及相关解释,请参见源码.另,授人以鱼,不如授人以渔.我写的只是一个原型,提供一个思路一种方法.注释中我也注明了,如果你想要酷炫的效果,你可以根据自己的实际需求扩展.查看演示: 点此查看DEMO原生JS版本:window.onload=function(){ vardivs=document.getElementsByTagName('div');//找到所有div元素 for(vari=0; idivs.length; i++){ if(divs[i].className!='jsdemo')con 阅读全文
posted @ 2010-12-14 11:57
.net's
阅读(594)
评论(0)
推荐(0)