记忆
whwqs
这个作者很懒,什么都没留下…
展开
-
fox与ie事件管理:fox是队列,ie是堆栈
Event.observe(window,"load",function(){alert(1)});Event.observe(window,"load",function(){alert(2)}); 在ie是 3 2 1在fox是 1 2 3原创 2008-09-03 10:03:00 · 596 阅读 · 0 评论 -
语法错误 应为表达式 也许是浏览器解释的问题
Object.prototype.f1 = function(){alert(9)} var o = {h:2}; o.f1(); // 可以 //{w:1}.f1(); // 应为表达式 的错误原创 2009-03-28 15:56:00 · 2062 阅读 · 2 评论 -
jquery 操作 iframe
a.html :http://www.google.com/jsapi > google.setOnLoadCallback(function(){jQuery(pageLoad)});google.load("jquery","1.3.2"); function pageLoad(){ $("iframe").contents().each原创 2009-04-14 15:58:00 · 1210 阅读 · 1 评论 -
javascript 继承
function c1(){this.name="1"} function c2(){this.name="2";c1.call(this);} alert(new c2().name); function c2(){c1.call(this);this.name="2";} alert(new c2().name);原创 2009-04-01 14:09:00 · 480 阅读 · 0 评论 -
google api 调用 jquery
可以用google的api来调用jquery,示例:http://www.w3.org/1999/xhtml"> google jquery http://www.google.com/jsapi">> google.setOnLoadCallback(function(){$(document).ready(pageLoad);}); google.l原创 2009-04-14 13:37:00 · 1205 阅读 · 0 评论 -
《asp.net 3.5核心编程》读书笔记1
书中提供一个区别回发和刷新的解决方案,学后受益匪浅。 仔细想了下它的原理,就是浏览器的刷新机制:每次请求的信息会存储,当刷新时直接用最近存储的请求做请求,不会再从页面去搜集信息。 为了验证,特做一个aspx页面验证,只包含一个后台按钮代码如下: static int n = 0; protected void Page_Load(object sende原创 2009-05-13 14:28:00 · 764 阅读 · 0 评论 -
错误中的线索
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1950890 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnec原创 2009-06-21 22:55:00 · 747 阅读 · 0 评论 -
Function 的 prototype
Function.prototype.method = function(name, func) { this.prototype[name] = func; return this; } function f1() { } f1.method("a", function(k) { alert(k+原创 2009-06-29 23:39:00 · 984 阅读 · 0 评论 -
wcf x509 证书生成和配置
X509自定义证书于wcf的wshttpbinding的message方式的实验过程(有图有真相)(下载)一、制作证书:Vs 2008 命令行下:D:\Program Files\Microsoft Visual Studio 9.0\VC>makecert-sr localmachine -ss My -n CN=wcf服务端机器名 -sky exchange -pe –r原创 2012-11-29 15:20:57 · 5879 阅读 · 0 评论 -
直观了解武汉的窗口:推荐我秀中国
我秀中国原创 2008-04-30 14:12:00 · 627 阅读 · 0 评论 -
unity 2.0 interception 学习1
源代码分析,对 VirtualMethodInterceptor 刨根问底的线索:目的:类型拦截是如何产生动态实例及这个动态实例如何实现了接口IInterceptingProxy、behavior如何被集成、执行顺序如何被安排、为什么必须是virtualIntercept 中NewInstanceWithAdditionalInterfaces(原创 2012-12-12 15:14:54 · 1928 阅读 · 0 评论 -
现在开始学习jsp
开源有开源的好处,现在开始学java,从jsp入手。感觉要提高架构能力,应该从java的开源中汲取营养。我用jsp开发的bs方式的象棋游戏,两个人分别在不同电脑对下,还有人工智能:http://download.csdn.net/detail/whwqs/3730855原创 2011-08-28 01:10:10 · 617 阅读 · 0 评论 -
unity 2.0 interception 学习2
上一篇:unity 2.0 interception 学习1对于VirtualMethodInterceptor,还有需要澄清的地方:1、代理是如何实现IInterceptingProxy接口的:(1)先从以下实验代码了解 动态创建类 和创建的类如何实现接口: public interface IHello { void SayH原创 2012-12-13 18:02:37 · 2743 阅读 · 0 评论 -
网址
百度 大脑js美化百度地图jeasy uiJSON在线校验、格式化、视图artech wcf startartech 数据契约网站素材You need to add a mapping for the SVC extension to ASP.NET. The easiest way to do this is to run ServiceModelReg.exe -i f原创 2012-12-17 14:50:29 · 641 阅读 · 0 评论 -
unity 2.0 interception 学习3
上一篇:unity 2.0 interception 学习2前面讲的是类型拦截,在类型拦截中,目标类型不是原始类型(被拦截的类),原始类型(被拦截的类)会被动态的派生,调用这个派生类的virtual方法实际会转移到behavior[0]的invoke方法。今天看看实例拦截:public static object ThroughProxyWithAdditionalInterf原创 2012-12-17 17:29:07 · 924 阅读 · 0 评论 -
网址2
http://streetlight-vision.comhttp://www.lcxh.com.cn/http://www.shuncom.comhttp://www.twiddla.com/1035446http://zwibbler.com/原创 2012-12-19 17:10:33 · 692 阅读 · 0 评论 -
纠正对prototype1.5框架toJSON的错误认识
// 原来认为包含后 就可以 alert({w:1}.toJSON());// 实际要用prototype添加一个toJson,当然可以是别的名称 Object.prototype.toJson = function(){return Object.toJSON(this);} var s = {w:{w:2,s:3}}.toJson(); alert(s);原创 2009-03-28 15:25:00 · 788 阅读 · 0 评论 -
操作excel的记忆1
private void button1_Click(object sender, EventArgs e) { string s = ""; int i=1; do { System.Array array = this.Range["a" + i.ToString原创 2009-03-26 23:52:00 · 596 阅读 · 0 评论 -
setAttribute注意
// 往element中自定义属性时最好不用setAttributefunction f1(){ var div = document.getElementById("d1"); div.setAttribute("My1",1); div.My2 = 2; alert(div.My1);// ie是预期,fox不是 alert(div.My2);// 都是 }原创 2008-09-03 14:30:00 · 624 阅读 · 0 评论 -
fox,ie 如何保证js执行顺序
function f(){ var script = document.createElement("script"); //script.text = "alert(s);"; // ie fox 都报错 script.src = "3.js"; // fox 可以 ie报错;fox ,先f();f2(); 再3.js的语句,保证了顺序原创 2008-09-04 13:29:00 · 821 阅读 · 0 评论 -
利用图片onload、onerror实现ie fox 的多线程,并保证顺序
function f(){ var img = document.createElement("img"); // fox 用 img.src = "1.gif"; img.onload = function(){alert(s);img.parentNode.removeChild(img);}; // ie 用 img.src = "wrong";原创 2008-09-04 14:55:00 · 830 阅读 · 0 评论 -
js兼容时对属性的操作
获取用getAttribute,设置用.点。原创 2008-09-04 17:22:00 · 512 阅读 · 0 评论 -
代码触发js事件
/** * 模拟element事件 * @requires element * @requires 事件类型:click 、 mousedown * @returns none * @type none */function FireEvent(element,evt){ if (document.createEvent) { var evObj = d原创 2008-09-05 09:58:00 · 875 阅读 · 0 评论 -
c#为iis增加mime
public class IISMIMEOP{ public static DirectoryEntry GetIIsWebVirtualDir(string virtualName) {// 适用多个网站中虚拟目录名称不同的情况 string svcName = "IIS://localhost/W3SVC"; DirectoryEntry svcRoot原创 2008-09-08 16:52:00 · 1849 阅读 · 0 评论 -
还原数据库等
using System;using System.Collections.Generic;using System.ComponentModel;using System.Configuration.Install;using System.Data.SqlClient;using System.IO;using System.DirectoryServices;using System.Dat原创 2008-09-09 17:38:00 · 551 阅读 · 0 评论 -
cookie 与统计相关
function gv_cnzz(of){ var es = document.cookie.indexOf(";",of); if(es==-1) es=document.cookie.length; return unescape(document.cookie.substring(of,es));}function gc_cnzz(n){ var arg=n+"=";原创 2008-09-11 15:43:00 · 778 阅读 · 0 评论 -
fox与ie的iframe 的document事件
main iframe document.onkeydown = function(){alert(100)};var iframes = document.getElementsByTagName("iframe");if ( isIE )iframes[0].contentWindow.document.onkeydown = function(){alert(200)};原创 2008-09-19 11:36:00 · 759 阅读 · 0 评论 -
翻译
// K.Q K.vvar X=new Image(10,15);X.src="http://hy.iciba.com/img/plus.gif";var O=new Image(10,15);O.src="http://hy.iciba.com/img/minus.gif";var statusOn=new Image(10,10);statusOn.src="http://res.ic原创 2008-09-26 15:14:00 · 783 阅读 · 0 评论 -
选择文本事件
选择事件武汉湖北中国 var K = K || {}; K.SelectEvent = function(e) { var q = K.GetSelectText(); if ( == q) return true; alert(q); }; K.GetSelectText = f原创 2008-09-26 16:07:00 · 723 阅读 · 0 评论 -
drag
function leador_drag_set_forImg(ctr,dragHandle) {// ctr:要设置拖动的div ,w:着力点宽度,h:着力点高度 if(typeof ctr=="string") ctr=document.getElementById(ctr); ctr.orig_x=parseInt(leador_getstyle(ctr,"lef原创 2008-12-31 18:06:00 · 896 阅读 · 0 评论 -
ie滚动条样式
滚动条ie样式:HTML{SCROLLBAR-FACE-COLOR: #084fa7;SCROLLBAR-HIGHLIGHT-COLOR: #fff;SCROLLBAR-SHADOW-COLOR: #ffffff;SCROLLBAR-ARROW-COLOR: #ffffff;SCROLLBAR-TRACK-COLOR: #084fa7;SCROLLBAR-DARKSHADOW-COLOR: #08原创 2008-12-22 13:47:00 · 558 阅读 · 0 评论 -
处理请求的过程的线索
System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr, Int32) : Int32System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest) : VoidSystem.Web.HttpRuntime.ProcessRequestNow(HttpWorkerRequest)原创 2009-03-24 00:09:00 · 462 阅读 · 0 评论 -
从.Net类库代码来看Asp.net运行时(转自酷网动力)
写在前面的话:网上讲Asp.net运行模式的好文章已经很多了,笔者本不用多此一举,另成一文。但从笔者自己的学习经验看,如果学到的这些知识不能对应到类库中的源代码,印象总归不够深刻,大有隔靴搔痒之感。只好自己写上一篇,对这方面的知识做个小小的总结。文中所有内容都是笔者在看了网上很多文章后,结合自己的开发经验得出的一些理解,难免有错误的地方,欢迎批评指出。另外,由于笔者能力所限,很多地方并未转载 2009-03-24 00:23:00 · 866 阅读 · 0 评论 -
微软企业库非配置方式得到CacheManager
public class MemoryCacheHelper { private static CacheManager _Cache = null; static MemoryCacheHelper() { IBackingStore backStore = new NullBackingStore();原创 2013-05-27 10:56:12 · 2081 阅读 · 0 评论