Javascript¶ÔÏó£¬prototypeÁ´
DocÁ´½Ó£º http://docs.google.com/Doc?docid=0AZUdXGtQa0xqZGRocmo3MzZfMjA2Y2ZqZ2szZ2g&hl=en
¹Ø¼ü´Ê£ºJavaScript£»¶ÔÏó£»prototype£»prototypeÁ´
ÎÒÃÇÀ´´ò¸ö±È·½°É£º
ËæןöÈ˵çÄÔÓ²¼þµÄ°×²Ë¼Û»¯£¬ºÜ¶àÓ²¼þÖÆÔìÉÌ¿ªÊ¼°ïÓû§×öÕû»úDIY¡£ÓÐʱºòÓû§¿ÉÄܻص½“×ܲ¿”È¥×°»ú£¬ÄÇÀﶫÎ÷ºÜÈ«¡£µ«Ò»°ãÕâЩ³§¼ÒÔÚ¸÷¸öСµØ·½Ò²ÓÐÍøµã£¬Äã¿ÉÒԾͽüÈ¥×°»ú£¬ËûÒ²ÌṩËùÓеÄÅä¼þ¡£µ«ÕâÀïÕâЩÍøµã×Ô¼º²¢Ã»ÓÐÅä¼þ£¬¶øÊǵ±Óû§ÒªµÄʱºòËûÃDZãÈ¥×ܲ¿Äã¬ÓÐЩӲ¼þ×ܲ¿Ò²Ã»ÓУ¬Õâʱ×ܲ¿ÔÚÏòÉú²úÉÌÄÃ... ×îÖÕ¿ÉÄܻᵽÉú²úÁ÷Ë®ÏßÉÏ¡£µ«ÕâÒ»ÇжÔ×°»úµÄÈËÀ´ËµÊDz»ÐèÒª¹ØÐĵģ¬ËûÖ»ÖªµÀÄãÊÇ×°»úÍøµã£¬ÎÒҪʲô¶«Î÷£¨µ±È»¾ÖÏÞÔÚµçÄÔÓ²¼þ£©Ä㶼ÄÜÌṩ¡£Í¬Ê±ÕâЩ³§¼ÒÒ²²»»áÔÚÈκÎÒ»¸öÍøµã·ÅÖÃËùÓеÄÓ²¼þ£¬Ö»ÊÇÓÐÐèÒªµÄʱºò»áÏòÉÏÒ»¼¶È¡¡£
ÕâÌ׶«Î÷¾ÍÊÇÎÒҪ˵µÄJavaScriptÖеĶÔÏóµ½µ×ÊÇÔõô¹¤×÷µÄ£ºprototypeÁ´£¬¾ÍÏñÕâÖÖÓ²¼þ¹©Ó¦É̲»¶ÏÏò×Ô¼ºµÄÉÏÒ»¼¶È¥È¡Ò»ÑùµÄЧ¹û¡£
Èç¹ûÄã²»Ïë¹ØϵOOP£¨ÃæÏò¶ÔÏó±à³Ì£©µÄ»°£¬Íêȫû±ØҪȥ¹ØÐÄÕâ¸ö»°Ìâ¡££¨ÕâÀïÄܲ»ÄܽÐOOPÒÔºóÔÙÀí½â°É£©
Ê×ÏÈ»¹ÊÇҪ˵һÏÂjsµÄÔÉú¶ÔÏ󣬰üÀ¨£ºArray¡¢Number¡¢RegExp¡¢Function¡¢Object... ÕâÀï²»Ò»Ò»Áоٵģ¬ÁоÙÕâЩ¶«Î÷µÄÎĵµµ½´¦¶¼ÊÇ¡£
µ±ÎÒÃÇÓÃÕâЩÔÉú¶ÔÏóµÄʱºò¿ÉÒÔÀí½âΪËûÃǾÍÊÇϵͳÌṩµÄ“Àà”£¬ÎÒÃÇ¿ÉÒÔÕâÑù¶¨ÒåÒ»¸ö¶ÔÏó£º
var obj = new Object();
obj.x = "hello world"; // ÕâÑù»á¶¯Ì¬µÄ¸øobjÌí¼ÓÒ»¸ö“³ÉÔ±±äÁ¿”£¬Ó¦¸Ã½ÐÊôÐÔ
ÕâÀï¾Í¿ÉÒÔÀí½âÎÒÃÇ´´½¨ÁËÒ»¸öObjectÀàµÄʵÀýobj¡£obj¿ÉÒÔʹÓÃObjectµÄ·½·¨obj.toString()µÈµÈ¡£
ÕâÒ»ÇГ³¤µÄ”¶¼ºÜÏñJava¡¢c++ÄÇÑùµÄÀࡢʵÀýµÄÐÐΪ¡£µ«ÎÒÃÇÔÚÏÂÃ潫¿´µ½£¬Æäʵ²»ÊÇÕâÑùµÄ...
jsÊÇÒ»¸öprototypeÓïÑÔ
prototype£¨ÔÐÍ£©£¬Èç¹ûÄãÖªµÀÕâ¸ö¸ÅÄÄÇÊÇ×îºÃ¡£Èç¹û²»ÖªµÀ£¬ÎÒÕâÀï»á×öһЩ½éÉÜ£¬µ«²»Êǹٷ½µÄ£¬ÉîÈëµÄÀí½âÇë¿´ÆäËû×ÊÁÏ¡£
prototype£¬prototype£¬prototype£¬prototype£¬prototype£¬prototype£¬prototype ...
ÏÈ°ÑËû±³ÏÂÀ´°É£¬prototypeµ½µ×¸ÉɶµÄ£¿ÔÐÍ£¿²»Àí½â... û¹Øϵ£¬¼ÇסËü
ÕâÀïÎÒÏÈÉùÃ÷¼¸µã£¨²»Ò»¶¨ÕýÈ·£¬µ«¶ÔÄ㵱ǰÀí½âÏÂÃæµÄÐÐΪ»áÓкܺõİïÖú£¬µ±¿´²»¶®µÄʱºò¾ÍÀ´¿´Õ⼸Ìõ£©
1. jsÀïûÓГÀà”ÕâÒ»¸ÅÄÊǸù±¾¾ÍûÓС£
2. jsÀïµÄ×î³£ÓõĶ«Î÷¾ÍÊÇObject£¨ÒÔ϶¼³ÆΪ¶ÔÏ󣩣¬ËûÓеãÏñÒ»¸öhash map£¬Ò»¸ö¼üÖµ¶Ô¼¯ºÏ£¬Ò»°ãÎÒÃÇÏ°¹ßд³É
Ïà¹ØÎĵµ£º
*------------------------------------------------------
*˵Ã÷£ºselectÔªËØjavascript³£ÓòÙ×÷
* 1.ÅжÏÊÇ·ñ´æÔÚÖ¸¶¨valueµÄItem
* 2.¼ÓÈëÒ»¸öItem
* 3.ɾ³ýֵΪvalueµÄËùÓÐItem
* 4.ɾ³ýijһ¸öindexµÄÑ¡Ïî
  ......
ѧºÃASP.NET£¬JavaScriptÏ൱ÖØÒª£¬Ç°Ò»¶Îʱ¼ä¿´ÍêÁË¡¶JavaScript»ù´¡½Ì³Ì¡·£¨ÁîÈËÓôÃƵÄÊÇ£¬ÔÚÎÒÂò»Ø¼ÒµÚÁù°æÖ®ºó£¬µÚÆß°æÆäʵÒѾÓÐÁË£©¡£ºÃ¾Ãû¸´Ï°ÁË£¬¼ÓÉÏƽʱѧϰºÍ¹¤×÷Éæ¼°JavaScriptµÄ²¢²»¶à£¬ËùÒÔÓÐЩ¶¼µÍüÁË¡£½ñÌìÏ°àÍæÁË»áwow£¬Äóöµãʱ¼ä¸´Ï°Ï£¬ÕûÀíÕûÀíһЩÈÝÒ×Íü¼ÇµÄ֪ʶµã¡£ÀÍÒݽáºÏ£ ......
ÔÚÃæÏò¶ÔÏó±à³ÌÓïÑÔÖУ¬¶ÔÓÚthis¹Ø¼ü×ÖÎÒÃÇÊǷdz£ÊìϤµÄ¡£±ÈÈçC++¡¢C#ºÍJavaµÈ¶¼ÌṩÁËÕâ¸ö¹Ø¼ü×Ö£¬ËäÈ»ÔÚ¿ªÊ¼Ñ§Ï°µÄʱºò¾õµÃ±È½ÏÄÑ£¬µ«Ö»ÒªÀí½âÁË£¬ÓÃÆðÀ´ÊǷdz£·½±ãºÍÒâÒåÈ·¶¨µÄ¡£JavaScriptÒ²ÌṩÁËÕâ¸öthis¹Ø¼ü×Ö£¬²»¹ýÓÃÆðÀ´¾Í±È¾µäOOÓïÑÔÖÐÒª"»ìÂÒ"µÄ¶àÁË¡£
ÏÂÃæ¾ÍÀ´¿´¿´£¬ÔÚJavaScriptÖи÷ÖÖthisµÄʹÓ÷½·¨ÓÐʲô ......
web¿ª·¢ÖÐÓÐʱÐèÒª¶ÔÊäÈë¿òÖеÄʱ¼ä£¨Ö÷ÒªÊÇ¿ªÊ¼Ê±¼äºÍ½áÊøʱ¼ä£©½øÐбȽϣ¬ÍøÉÏËÑË÷ÁËÒ»·¬£¬·¢ÏÖÓв»ÉÙÊÇÎÞЧµÄ£¬ÒÔÏ·½·¨¾Ð¡µÜ¼ìÑéȷʵÓÐЧ£¬Ìش˹²Ïí¡££¨Çë¹Ø×¢ºìÉ«²¿·Ö£©
function ValidtorTime(){
var d1 = new Date(document.getElementById('txbfromDate').value.replace(/\-/g, "\/"));
var d2 = new Date(do ......
´´½¨Ò»¸öWinformÓû§¿Ø¼þ UserControl1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Reflection;
namespace MyActiveT ......