£¨Ñ§Ï°±Ê¼Ç£©JavaScriptÖе÷Óú¯ÊýµÄÀ¨ºÅÎÊÌâ
ÎÒÔÚjsÖж¨ÒåÁËÒ»¸öº¯Êý£º
function closeCodeList()
{
try
{
showFistIndex = 0;
arrayBmCode = null;
if(document.all("spanCode").style.display=='')
{
var disFlag=1;
}
document.all("spanCode").style.display='none';
try{if(disFlag)oldFieldKey.focus();}catch(ex){}
}
catch(ex)
}
È»ºóµ÷ÓõÄʱºò
Field.onblur=closeCodeList();
ÔËÐÐʱÌáʾ£º“´íÎó£ºÉÐδʵÏÖ”
ÎÒ°ÑÀ¨ºÅÈ¥µôºóÓÖÄÜÕý³£µ÷Óã¬ÎªÊ²Ã´ÕâÀïµ÷Óú¯Êý²»ÄÜÓÃÀ¨ºÅÄØ£¿
·¢Ìûºó£¬µÃµ½µÄ»Ø´ðÈçÏ£º
Ò»£ºfun() ÊÇ º¯Êýµ÷ÓõÄÒâ˼, µÃµ½µÄÊÇ fun()µ÷ÓúóµÄ·µ»ØÖµ
º¯ÊýµÄ¶¨ÒåÊÇ function fun(){..} »òÕß var fun = fnction(){}
Field.onblurÆÚ´ýµÄÊǺ¯Êý¾ä±ú£¬¼´ fun£¬¶ø²»Êǵ÷ÓÃfun()ºóµÄ·µ»ØÖµ(³ý·Ç·µ»ØµÄÒ²ÊǺ¯Êý¾ä±ú)
¶þ£ºonblurÊÇÒ»¸öʼþ£¬Ð´³ÉÕâÑùÄã¾ÍÃ÷°×ΪʲôÁË
Field.onblur = function(){
try
{
showFistIndex = 0;
arrayBmCode = null;
if(document.all("spanCode").style.display=='')
{
var disFlag=1;
}
document.all("spanCode").style.display='none';
try{if(disFlag)oldFieldKey.focus();}catch(ex){}
}
catch(ex)
}
×ܽ᣺
onblurÊÇÒ»¸öʼþ£¬Èç¹ûÓÃfun()µÄ»°£¬Ï൱ÓÚ¶ÔÕâ¸öʼþ¸³Öµ£¬ÕâÑùÏÔÈ»ÊÇ´íÎóµÄ¡£Òò´ËÒªÓÃfun£¬¸øÕâ¸öʼþÒ»¸öº¯Êý¾ä±ú
Ïà¹ØÎĵµ£º
JSON(JavaScript Object Notation) ÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ£¬Ò×ÓÚÔĶÁºÍ±àд£¬Í¬Ê±Ò²Ò×ÓÚ»úÆ÷½âÎöºÍÉú³É¡£Ëü»ùÓÚECMA262ÓïÑԹ淶£¨1999-12µÚÈý°æ£©ÖÐJavaScript±à³ÌÓïÑÔµÄÒ»¸ö×Ó¼¯¡£ JSON²ÉÓÃÓë±à³ÌÓïÑÔÎ޹صÄÎı¾¸ñʽ£¬µ«ÊÇҲʹÓÃÁËÀàCÓïÑÔ£¨°üÀ¨C£¬ C++£¬ C#£¬ Java£¬ JavaScript£¬ Perl£¬ PythonµÈ£©µÄÏ°¹ß£¬ÕâЩÌØÐ ......
Ò». »ù´¡Æª
1. Javascriptѧϰ±Ê¼Ç1——Êý¾ÝÀàÐÍ
2. Javascriptѧϰ±Ê¼Ç2——º¯Êý
3. Javascriptѧϰ±Ê¼Ç3——×÷ÓÃÓò
4. Javascriptѧϰ±Ê¼Ç4——Evalº¯Êý
5. Javascriptѧϰ±Ê¼ ......
ÓÃJavascript»ñÈ¡Ò³ÃæÔªËصÄλÖÃ
ÈîÒ»·å ·¢±íÓÚ 2009Äê09ÔÂ14ÈÕ
|
·ÖÀࣺÊ×Ò³
-> µµ°¸
-> IT¼¼Êõ
ÖÆ
×÷ÍøÒ³µÄ¹ý³ÌÖУ¬ÄãÓÐʱºòÐèÒªÖªµÀij¸öÔªËØÔÚÍøÒ³ÉϵÄÈ·ÇÐλÖá£
ÏÂÃæµÄ½Ì³Ì×ܽáÁËJavascriptÔÚÍøÒ³¶¨Î»·½ÃæµÄÏà¹Ø֪ʶ¡£
Ò»¡¢ÍøÒ³µÄ¾ø¶Ô´ó ......
[×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд£¬·ñÔò»áÌáʾÄãÒ»¸ö´íÎóÐÅÏ¢ "ÒýÓõÄÔªËØΪ¿Õ»òÕß²»ÊǶÔÏó"]
========================================================================
¶ÔÏóÊôÐÔ:
document.title //ÉèÖÃÎÄ ......