纯js实现: var css = 'h1 { background: red; }', head = document.getElementsByTagName('head')[0], style = document.createElement('sty... Read More
posted @ 2015-06-22 00:15 Yghost Views(1961) Comments(0) Diggs(0) Edit
近来在学习移动设备的应用开发,接触了jQuery mobile,在网上查阅相关资料时发现一个叫”iScroll“的小插件。其实这个iScroll插件跟jQuery mobile没有多大关系,并不是基于jQuery mobile类库开发的js插件,是一个独立的js插件,使用它时不必预先引用jquery... Read More
posted @ 2015-01-18 15:10 Yghost Views(8974) Comments(9) Diggs(2) Edit
一切从一段代码说起。。。下面一段代码是最近我在对一EF项目进行重构时发现的。protected override void DoRemove(T entity){ this.dbContext.Entry(entity).State = EntityState.Deleted; Comm... Read More
posted @ 2014-11-30 17:19 Yghost Views(4994) Comments(28) Diggs(18) Edit
PM> Enable-Migrations -MigrationsDirectory "Migrations\ContextA" -ContextTypeName MyProject.Models.ContextA PM> Enable-Migrations -MigrationsDirectory Read More
posted @ 2016-07-10 16:24 Yghost Views(252) Comments(0) Diggs(0) Edit
PM> sqllocaldb.exe stop v11.0 LocalDB instance "v11.0" stopped. PM> sqllocaldb.exe delete v11.0 LocalDB instance "v11.0" deleted. PM> sqllocaldb.exe s Read More
posted @ 2016-03-06 14:38 Yghost Views(353) Comments(0) Diggs(0) Edit
只有注册用户登录后才能阅读该文。 Read More
posted @ 2015-05-16 10:39 Yghost Views(332) Comments(13) Diggs(3) Edit
Caliburn Micro是一个Caliburn精简版的开源框架,基于MVVM模式,可用于WPF, Silverlight, WP7等。有关它的具体介绍请看:http://caliburnmicro.codeplex.com/下面主要使用CM(Caliburn Micro)实现WPF的ListView全选功能,直接上码:1<ListViewName="lvFileCart"DockPanel.Dock="Top"ItemsSource="{BindingFileCart}"FontSize="12"Heig Read More
posted @ 2012-03-02 23:57 Yghost Views(978) Comments(2) Diggs(0) Edit
ExtAspNet - ExtJS based ASP.NET Controls with Full AJAX SupportExtAspNet是一组专业的Asp.net控件库,拥有原生的AJAX支持和丰富的UI效果,目标是创建没有ViewState,没有JavaScript,没有CSS,没有UpdatePanel,没有WebServices的Web应用程序。支持的浏览器: IE 7.0+, Firefox 3.6+, Chrome 3.0+, Opera 10.5+, Safari 3.0+注:ExtAspNet基于一些开源的程序ExtJS, HtmlAgilityPack, Nii.JSO Read More
posted @ 2011-11-22 10:24 Yghost Views(185) Comments(0) Diggs(0) Edit