2015年5月18日

摘要: 1.原型设计模式在.Net中可以使用clone()来实现原型法原型法的主要思想是,现在有1个类A,我想要创建一个类B,这个类是以A为原型的,并且能进行扩展。我们称B的原型为A。2.javascript的方法可以分为三类:类方法;对象方法;原型方法;举例说明:function People(name)... 阅读全文
posted @ 2015-05-18 16:26 yhhdream 阅读(107) 评论(0) 推荐(0) 编辑

2015年4月29日

摘要: 1、for xml path('str')select ID,CreateTime from dbo.ArticleInfo for xml Path('mytitle')结果:(注意:如果是select ID,CreateTime from dbo.ArticleInfo for xml path... 阅读全文
posted @ 2015-04-29 11:45 yhhdream 阅读(1163) 评论(1) 推荐(0) 编辑
 
摘要: 1、通过DbContext对象的Database.SqlQuery执行sql语句string query = "SELECT EnrollmentDate, COUNT(*) AS StudentCount " + "FROM Person " ... 阅读全文
posted @ 2015-04-29 11:01 yhhdream 阅读(122) 评论(0) 推荐(0) 编辑

2015年4月24日

摘要: 1、_Layout.cshtml @RenderBody()2、自定义扩展HtmlHelper(需要添加Bootstrap.js或者Bootstrap.min.js文件到项目中)namespace System.Web.Mvc.Html //Mvc4Bootstrap.App_Start{ pub... 阅读全文
posted @ 2015-04-24 18:05 yhhdream 阅读(95) 评论(0) 推荐(0) 编辑

2015年4月23日

摘要: 1、@Scripts.Render("~/bundles/kindeditor");@Styles.Render("~/Css/") //(加载)引用bundles/kindeditor/kindeditor.js文件 @using System.Web.Optimization2、@Html.Te... 阅读全文
posted @ 2015-04-23 17:31 yhhdream 阅读(105) 评论(0) 推荐(0) 编辑