上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
摘要: 1. 赋值 var o = anything || ' anythig is undefined'; // o 首先会取值 anything, 但如果anything 未定义, 则会取值 'anything is undefined'. var o = anything && 'anything i 阅读全文
posted @ 2013-08-05 11:11 Yu 阅读(248) 评论(0) 推荐(0) 编辑
摘要: using(SqlConnection conn = new SqlConnection(str)) { conn.Open(); using (System.Data.SqlClient.SqlBulkCopy sqlBC = new System.Data.SqlClient.SqlBulkCopy(conn)) { sqlBC.BatchSize = 10000;// 每次提交的数量级 sqlBC... 阅读全文
posted @ 2013-08-02 14:15 Yu 阅读(274) 评论(0) 推荐(0) 编辑
摘要: div {width:100px;height:200px;word-wrap: break-word;overflow:hidden;}这个可以固定div的宽高,溢出内容会被剪除。table{table-layout:fixed;width:200px;height:200px;}td {width:100px;height:200px;overflow:hidden;}这个只能固定td的宽度,而高度随内容增加而增高;若也要固定其高度,则需要在td中嵌套使用div,包住content,利用div的css。如果 去除 table-layout:fixed; 情况则会反过来。 阅读全文
posted @ 2013-07-31 14:12 Yu 阅读(3698) 评论(0) 推荐(0) 编辑
摘要: 盒子模型:margin(边界),可被占位;border(边框);padding(填充);content(内容)块元素: 默认占据一行,前后换行。 作为容器,装载块元素和行内元素,被装载元素的位置,会都受到容器的限制。 在CSS(display/float/position)作用下,块元素和行内... 阅读全文
posted @ 2013-07-24 16:08 Yu 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 1. 内容清空KindEditor.remove('#emailbody'); // 必须先移除,这样 editor1.html(body);才能起作用,否则将始终默认为第一次的赋值。var editor1 = KindEditor.create('#emailbody', { cssPath: '../../resources/kindeditor/plugins/code/prettify.css', langPath: '../../resources/kindeditor/lang/', lang... 阅读全文
posted @ 2013-06-14 15:35 Yu 阅读(664) 评论(0) 推荐(0) 编辑
摘要: DMV/F: https://msdn.microsoft.com/en-us/library/ms188068.aspx SELECT c.session_id , c.auth_scheme , c.node_affinity , r.scheduler_id , s.login_name , 阅读全文
posted @ 2013-05-30 13:07 Yu 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1. 类与类之间通过引用,即为导航属性,来建立关系,CF会根据引用的属性类型,将其映射为一对一,或一对多,或多对多的关系 表名生成方式:1)类名的复数(默认的)2)使用特性[Table("TableName")]指定 3)不想使用表名复数时,可以在OnModelCreating 中加入modelBu 阅读全文
posted @ 2013-05-18 11:11 Yu 阅读(229) 评论(0) 推荐(0) 编辑
摘要: vs2008 HTML设计器不能加载问题启动vistualstudio->Tools(工具)->Options(选项)->InternationalSettings(区域语言设置),两种语言混杂在一起,会提示报错的界面,设置为中文或英文,不要默认的如果设置完启动完还不行,则运行一下 devenv /... 阅读全文
posted @ 2013-04-20 14:45 Yu 阅读(395) 评论(0) 推荐(0) 编辑
摘要: public Form1(){ InitializeComponent(); ContextMenuStrip listboxMenu = new ContextMenuStrip(); ToolStripMenuItem rightMenu = new ToolStripMenuItem("Copy"); rightMenu.Click += new EventHandler(Copy_Click); listboxMenu.Items.AddRange(new ToolStripI... 阅读全文
posted @ 2013-04-11 08:36 Yu 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><style type="text/css">.hh{min-height:100px;height:auto !important;height:100px; width:30%;background:#FFF000;}</style></head><body><div class=&q 阅读全文
posted @ 2013-03-21 21:17 Yu 阅读(513) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页