上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: 添加如下扩展:$.fn.outerHTML=function(){$this=$(this);varh=$this.html();vars=$this.wrap("<div></div>").parent().html();$this.empty().html(h);returns;};然后就可以直接使用outerHTML()方法了。另外需要注意的是。如果获取的对象是数组。需要如下处理:varcontent=editAreaJQueryObj.find('tr:lt(7)');addressManager.CurrentEditAre 阅读全文
posted @ 2011-09-27 15:02 Care健康 阅读(872) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingCommons.Collections;usingNVelocity;usingNVelocity.App;usingNVelocity.Context;usingSystem.IO;usingNVelocity.Runtime;usingSystem.Text;usingDiscuz.Common;usingDiscu 阅读全文
posted @ 2011-09-01 16:44 Care健康 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 笔记 阅读全文
posted @ 2011-08-30 10:58 Care健康 阅读(257) 评论(50) 推荐(0) 编辑
摘要: publicActionResultIndex(stringcount,stringcurrent,stringcss){ViewData["Message"]="WelcometoASP.NETMVC!";intallCount=int.Parse(count);//总条数intcurrentPage=int.Parse(current);//当前页StringBuilderpager=newStringBuilder();intpage=(allCount%pageSize>0)?allCount/pageSize+1:allCount/pag 阅读全文
posted @ 2011-08-02 16:57 Care健康 阅读(275) 评论(8) 推荐(0) 编辑
摘要: 程序設計:貓大叫一聲,所有的老鼠都開始逃跑,主人被驚醒。(C#語言)要求: 1.要有聯動性,老鼠和主人的行為是被動的。 2.考慮可擴展性,貓的叫聲可能引起其他聯動效應 大部分答案都是使用的事件编程,我这里换了一下思路,使用观察着模式,用接口也实现了,因为考虑到第二个要求,即猫大叫也可能直接导致主人惊醒,所以Man也继承了ICatCatcher接口源代码如下:using System; using System.Collections; namespace test { public interface ICatCatcher { void DoSth(); } public interface 阅读全文
posted @ 2011-07-16 11:15 Care健康 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 引言在 C#中的委托和事件 一文的后半部分,我向大家讲述了Observer(观察者)模式,并使用委托和事件实现了这个模式。实际上,不使用委托和事件,一样可以实现Observer模式。在本文中,我将使用GOF的经典方式,再次实现一遍Observer模式,同时将讲述在 C#中的委托和事件 一文中没有提及的推模式(Push)和拉模式(Pull)。设计思想概述在 C#中的委托和事件 一文后半部分中我已经较详细的讲述了Observer设计模式的思想,所以这里仅简单的提及一下。Observer设计模式中实际上只包含了两类对象,一个是Subject(主题),一个是Observer(观察者)。它们之间的角色是 阅读全文
posted @ 2011-07-16 11:12 Care健康 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 一、基础 1、说明:创建数据库 CREATE DATABASE database-name 2、说明:删除数据库 drop database dbname 3、说明:备份sql server --- 创建 备份数据的 device USE master EXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1.dat' --- 开始 备份 BACKUP DATABASE pubs TO testBack 4、说明:创建新表 create table tabname(co 阅读全文
posted @ 2011-03-24 10:45 Care健康 阅读(413) 评论(7) 推荐(0) 编辑
摘要: 上海的佳吉快运有限公司是个骗子,他们电话是400-6011-750其中有一个运货员手机号是15800615112他们说的是一两天运到。实则要一周多。还把运的货物里的东西给偷了。锁被撬了。还骗我们要我两头交运费。大家小心了。签单时一定要让快运公司先写。不然他们会在收钱运费后在单子上写提付。这样就会造成付两次运费。 阅读全文
posted @ 2011-03-12 15:00 Care健康 阅读(290) 评论(1) 推荐(0) 编辑
摘要: 直接上代码:1usingSystem;2usingSystem.Collections.Generic;3usingSystem.ComponentModel;4usingSystem.Data;5usingSystem.Drawing;6usingSystem.Linq;7usingSystem.Text;8usingSystem.Windows.Forms;910usingSystem.Web;11usingSystem.Net;12usingSystem.IO;13usingSystem.Xml;1415namespaceWindForm16{17publicpartialclassFo 阅读全文
posted @ 2011-03-02 15:35 Care健康 阅读(2531) 评论(0) 推荐(0) 编辑
摘要: //---------------------------------------------------------------------//<copyrightfile="UserUtility.cs"company="Microsoft">//CopyrightMicrosoftCorporation,allrightsreserved//</copyright>//---------------------------------------------------------------------namespaceR 阅读全文
posted @ 2011-02-23 17:38 Care健康 阅读(609) 评论(37) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
版权
作者:Bober Song

出处:http://bober.cnblogs.com

Care健康:http://www.aicareyou.com

推荐空间:华夏名网

本文首发博客园,版权归作者跟博客园共有。

转载必须保留本段声明,并在页面显著位置给出本文链接,否则保留追究法律责任的权利。