Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javascriptʵÏÖÈÕÀú¹¦ÄÜ

»ÆÉ«²¿·ÖΪdate.js
<script type="text/javascript" src="/js/date.js"></script>
<input name="date" type="text" id="date" onBlur="checkDay(this)" style="width:160px;" /><INPUT class="button" style="WIDTH: 64px; HEIGHT: 24px" onClick="setday(this,date)"type="button" value="Ñ¡ÔñÈÕÆÚ">
//----------------------------------------------------------------------------
//  ÕâÊÇ÷»¨Óê×öµÄÒ»¸öÈÕÀú Javascript Ò³Ãæ½Å±¾¿Ø¼þ£¬ÊÊÓÃÓÚ΢ÈíµÄ IE £¨5.0ÒÔÉÏ£©ä¯ÀÀÆ÷
//  Ö÷µ÷Óú¯ÊýÊÇ setday(this,[object])ºÍsetday(this)£¬[object]ÊǿؼþÊä³öµÄ¿Ø¼þÃû£¬¾ÙÁ½¸öÀý×Ó£º
//  Ò»¡¢<input name=txt><input type=button value=setday onclick="setday(this,document.all.txt)">
//  ¶þ¡¢<input onfocus="setday(this)">
//  ÈôÓÐʲô²»×ãµÄµØ·½£¬»òÕßÄúÓиüºÃµÄ½¨Ò飬ÇëÓëÎÒÁªÏµ£ºmail: meizz@hzcnc.com
//  ±¾ÈÕÀúµÄÄê·ÝÏÞÖÆÊÇ£¨1000 - 9999£©
//  °´ESC¼ü¹Ø±Õ¸Ã¿Ø¼þ
//  ÔÚÄêºÍÔµÄÏÔʾµØ·½µã»÷ʱ»á·Ö±ð³öÄêÓëÔµÄÏÂÀ­¿ò
//  ¿Ø¼þÍâÈÎÒâµã»÷Ò»µã¼´¿É¹Ø±Õ¸Ã¿Ø¼þ
/* ÒÔÏÂΪwalkingpoisonµÄÐÞ¸Ä˵Ã÷
walkingpoisonÁªÏµ·½Ê½£ºwayx@kali.com.cn
Ver 2.0
ÐÞ¸ÄÈÕÆÚ£º2002-12-13
ÐÞ¸ÄÄÚÈÝ£º
1.*È«ÐÂÐÞ¸ÄʹÓÃiframe×÷ΪÈÕÀúµÄÔØÌ壬²»ÔÙ±»selectºÍflashµÈ¿Ø¼þµ²×¡¡£
2.ÐÞÕýÁËÒÆÖ²µ½iframeºóÒƶ¯ÈÕÀú¿Ø¼þµÄÎÊÌâ¡£
Ver 1.5
ÐÞ¸ÄÈÕÆÚ£º2002-12-4
ÐÞ¸ÄÄÚÈÝ£º
1.Ñ¡ÖеÄÈÕÆÚÏÔʾΪ°¼ÏÂÈ¥µÄÑùʽ
2.ÐÞ¸ÄÁ˹رղãµÄ·½·¨£¬Ê¹µÃʧȥ½¹µãµÄʱºòÄܹ»¹Ø±ÕÈÕÀú¡£
3.Ð޸İ´¼ü´¦Àí£¬Ê¹µÃTabÇл»½¹µãµÄʱºò¿ÉÒԹرտؼþ
4.*¿ÉÒÔ×Ô¶¨ÒåÈÕÀúÊÇ·ñ¿ÉÒÔÍ϶¯
Ver 1.4
ÐÞ¸ÄÈÕÆÚ£º2002-12-3
ÐÞ¸ÄÄÚÈÝ£º
1.ÐÞÕýÑ¡ÖÐÄê/Ô·ÝÏÂÀ­¿òºó°´Esc¼üµ¼ÖÂÄê/Ô·ݲ»ÏÔʾµÄÎÊÌâ
2.ÐÞÕýʹÓÃÏÂÀ­¿òÑ¡ÔñÔ·ÝÔì³ÉµÄÈÕÆÚ´íÎó£¨×Ö·û´®×ª»¯ÎªÊý×ÖµÄÎÊÌ⣩
3.*Íâ¹ÛÑùʽµÄ¸Ä½ø£¬Ê¹µÃ¿Ø¼þ´Ó³óСѼ±ä³ÉÁËÃÀÀöµÄÌì¶ì£¬´Ó»Ò¹ÃÄï±ä³ÉÁ˸߹óµÄ¹«Ö÷£¬´Ó……£¨¶ÁÕß¿ÉÒÔ×Ô¼º½øÐÐÇ¡µ±µÄ±ÈÓ÷£©
4.ÔÙ´ÎÔö´óÄê/Ô·ݵĵã»÷¿Õ¼ä£¬²¢¶ÔÏÂÀ­¿òµÄλÖÃÉÔ×÷µ÷Õû
×¢£º*ºÅ±íʾ±È½Ï¹Ø¼üµÄ¸Ä¶¯
˵Ã÷£º
1.Êܵ½iframeµÄÏÞÖÆ£¬Èç¹ûÍ϶¯³öÈÕÀú´°¿Ú£¬ÔòÈÕÀú»áÍ£Ö¹Òƶ¯¡£
*/
//==================================================== ²ÎÊýÉ趨²¿·Ö ============================


Ïà¹ØÎĵµ£º

JavascriptÖÐ×î³£ÓõÄ55¸ö¾­µä¼¼ÇÉ

 1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" onc ......

javascript µÄforEachº¯Êý

ÔÚBase2ÖÐÕÒµ½Ò»¸ö½ÐforEachµÄº¯Êý£¬ÊÇÎÒ¼û¹ýµÄ×îºÃµÄʵÏÖ¡£ÍÚ³öÀ´·ÖÎöһϡ£ËüÄܶԸ÷ÖÖÆÕͨ¶ÔÏó£¬×Ö·û´®£¬Êý×éÒÔ¼°ÀàÊý×é½øÐбéÀú¡£Èç¹ûÔ­ÓÎÀÀÆ÷µÄ¶ÔÏóÒÑʵÏִ˺¯Êý£¬ËüÔòµ÷ÓÃÔ­¶ÔÏóµÄº¯Êý¡£
function forEach(object, block, context, fn) {
if (object == null) return;
if (!fn) {
if (typ ......

javaScript Êý×é

 1¡¢Êý×éµÄ´´½¨
var arrayObj = new Array();¡¡//´´½¨Ò»¸öÊý×é
var arrayObj = new Array([size]);¡¡//´´½¨Ò»¸öÊý×é²¢Ö¸¶¨³¤¶È£¬×¢Òâ²»ÊÇÉÏÏÞ£¬Êdz¤¶È
var arrayObj = new Array([element0[, element1[, ...[, elementN]]]]);¡¡´´½¨Ò»¸öÊý×é²¢¸³Öµ
Ҫ˵Ã÷µÄÊÇ£¬ËäÈ»µÚ¶þÖÖ·½·¨´´½¨Êý×éÖ¸¶¨Á˳¤¶È£¬µ«Êµ¼ÊÉÏËùÓ ......

JavaScript±È½ÏÁ½¸öÊý×éÏàµÈ

javascriptÊDz»ÄÜÖ±½Ó±È½ÏÁ½¸öÊý×éÊÇ·ñÏàµÈµÄ¡£ÀýÈ磺
var a = [1,2,3];
var b = [1,2,3];
alert(a == b);     // false
½á¹ûÊÇ false. Ö¤Ã÷Á½¸öÊý×é²»ÄÜÖ±½Ó±È½ÏÏàµÈ¡£
½â¾ö·½·¨Ò»£º
ÏÈÅÅÐò£¬ÔÙÀûÓÃtoString·½·¨£¬±È½Ï¡£ÀýÈ磺
var a = [1,2,3];
var b = [1,2,3];
alert(a.sort().toString() ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ