上一页 1 ··· 7 8 9 10 11
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript" defer=& 阅读全文
posted @ 2012-03-19 09:29 Bug山Bug海 阅读(239) 评论(0) 推荐(0)
摘要: ①<script runat="server">代码段与<%%>内联代码段的区别在asp.net页面的aspx文件中允许使用<script runat="server">和<%%>标记来插入代码片断。这两种方式有什么区别呢?<script runat="server">标记中的代码跟.cs文件中的代码地位是一致的,比如像下面这样声明一段事件处理代码<script runat="server"> protected void TextBox1_T 阅读全文
posted @ 2012-03-19 08:58 Bug山Bug海 阅读(1209) 评论(0) 推荐(1)
摘要: var arry = [1, 2, 3, 4]; var arry2 = $.map(arry, function (item) { return item * item; }); var obj = { "pro1":"11", "pr02":"22" }; $.each(arry2, function () { document.writeln(this); }); $.each(arry2, function (key, value) { document.write... 阅读全文
posted @ 2012-03-17 19:34 Bug山Bug海 阅读(188) 评论(0) 推荐(0)
摘要: 配置文件中加入 <system.net> <mailSettings> <smtp> <network host="smtp.qq.com" port="25" userName="475504513@qq.com" password=""/> </smtp> </mailSettings> </system.net> MailMessage msg = new MailMessage(); msg.From = new MailA 阅读全文
posted @ 2012-03-17 18:29 Bug山Bug海 阅读(213) 评论(0) 推荐(0)
摘要: 迁移时代码部分样式没了,具体见http://blog.csdn.net/ssll7759/article/details/7362405通过System.Windows.Browser命名空间下的HtmlPage,HtmlDocument,HtmlElement,HtmlWindow操作浏览器对象(1) HtmlDocument的属性简介 Body:Html的Body对象 Cookies:Cookie字符串 DocumentElement: DocumentUri:Silverlight宿主的html地址 QueryString:页面的查询字符串参数(2) HtmlPage的属性简介 可以使用 阅读全文
posted @ 2012-03-17 11:30 Bug山Bug海 阅读(277) 评论(0) 推荐(0)
摘要: 简单使用的例子 { List<int> list = new List<int>(){0,1,2,23,214}; var rst= list.Where(item => item > 5); var rst2 = list.Where<int>(new Func<int, bool>(item => { return item > 5; })); var rst3 = from item in list where item > 5 ... 阅读全文
posted @ 2012-03-07 01:56 Bug山Bug海 阅读(178) 评论(0) 推荐(0)
摘要: 1.null和undefined区别 undefined 继承自null,两者都是浏览器window的一个特殊属性例: alert('undefined' in window); //输出:true var anObj = {}; alert('undefined' in anObj); //输出:false undefined 表示变量未定义或者定义了未赋值的值例: var a; alert(a);//输出:undefined alert( typeof b);//输出:undefined alert(b);//产生错误 ... 阅读全文
posted @ 2012-03-07 00:47 Bug山Bug海 阅读(166) 评论(0) 推荐(0)
摘要: 默然Silverlight不支持跨域访问资源,需要在对应Web地址根目录部署策略文件 Sliverlight 跨域策略(clientaccesspolicy.xml) Flash 跨域策略(crossdomoain.xml)的子集clientaccesspolicy.xml<?xml version="1.0" encoding="utf-8"?><access-policy> <cross-domain-access> <policy> <allow-from http-request-header 阅读全文
posted @ 2012-03-05 23:01 Bug山Bug海 阅读(206) 评论(0) 推荐(0)
摘要: 1. 一般控件绑定模式默认是Mode=OneWay 但是DataGrid 默认会是双向绑定Mode=TwoWay2.后台DataContext的类型必须是public不然赋值会无效,不明原因 实现 INotifyPropertyChanged接口,集合类需要实现INotifyCollectionChanged,OneWay或TwoWay才能反应 框架中ObservableCollection<T>已实现INotifyCollectionChanged,可直接使用public class Book : INotifyPropertyChanged { public event... 阅读全文
posted @ 2012-03-05 22:47 Bug山Bug海 阅读(172) 评论(0) 推荐(0)
摘要: 示例1、样式(App.xaml)<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="Silverlight20.App" > <Application.Resources> <!--全局样式 - 任何地方都可引用--> <!-- Style - 自定义样式资源。用 阅读全文
posted @ 2012-03-05 22:15 Bug山Bug海 阅读(368) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11