摘要: HTML5 原理伯斯塔尔法则:发送时要保守;接收时要开放。1. 省掉不必要的复杂性。<!Doctype html>Doctype的内容是写给验证器看的,而不是浏览器。<meta charset=”utf-8”><link rel=”stylesheet” href=”…” /><script src=”…”></script>2. 支持已有的内容元素可以不关闭;属性值可以不加引号;元素可以不小写。3. 解决现实的问题允许一个链接包含多个块级元素4. 求真务实新增加了有语义的元素如header ,section ,footer等。在ht 阅读全文
posted @ 2011-06-26 10:55 uso 阅读(527) 评论(1) 推荐(0) 编辑
摘要: 显示默认文字,当用户点击,准备输入的时候,TextBox清空,当用户输入了内容,则不做任何动作如果没有输入,鼠标离开TextBox焦点,则继续提示参考源码如下://假设 TextBox 的Name为 conditionTextBox复制代码string defaultSearchConditionText = "默认文字";private void conditionTextBox_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) this.GetSearchCondition()); if (th 阅读全文
posted @ 2011-06-25 20:51 uso 阅读(754) 评论(2) 推荐(0) 编辑
摘要: 上传一个Json.Net这是里面readme的原话Json.NET makes working with JSON formatted data in .NET simple. Quickly read and write JSON using LINQ to JSON or serialize your .NET objects with a single method call using the JsonSerializer.Json.NET里面包含很多.NET中使用json来格式化数据的例子。对应环境有-DotNet: .NET latest (4.0)-DotNet35: .NET 阅读全文
posted @ 2011-06-25 20:49 uso 阅读(444) 评论(2) 推荐(0) 编辑