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

JavaScript»ù±¾ÔªËØ

1.Text µ¥Ðе¥ÁÐÊäÈëÔªËØ
          ¹¦ÄÜ£º¶ÔText±êʶÖеÄÔªËØʵʩÓÐЧµÄ¿ØÖÆ
          »ù±¾ÊôÐÔ£º
                Name£ºÉ趨Ìá½»ÐÅϢʱµÄÐÅÏ¢Ãû³Æ¡£¶ÔÓ¦ÓÚHTMLÎĵµÖеÄName¡£
                Value£ºÓÃÒÔÉ趨³öÏÖÔÚ´°¿ÚÖжÔÓ¦HTMLÎĵµÖÐValueµÄÐÅÏ¢¡£
                defaultvalue£º°üÀ¨TextÔªËصÄĬÈÏÖµ
         »ù±¾·½·¨£º
                blur()£º½«µ±Ç°½¹µãÒƵ½ºǫ́¡£
                select()£º¼ÓÁÁÎÄ×Ö¡£
¡¡       Ö÷Ҫʼþ£º
                onFocus£ºµ±Text»ñµÃ½¹µãʱ£¬²úÉú¸Ãʼþ¡£
                OnBlur£º´ÓÔªËØʧȥ½¹µãʱ£¬²úÉú¸Ãʼþ¡£
                Onselect£ºµ±ÎÄ×Ö±»¼ÓÁÁÏÔʾºó£¬²úÉú¸ÃÎļþ¡£
                onchange£ºµ±TextÔªËØÖµ¸Ä±äʱ£¬²úÉú¸ÃÎļþ¡£
£²¡¢textarea ¶àÐжàÁÐÊäÈëÔªËØ
¡¡       ¹¦ÄÜ£ºÊµÊ©¶ÔTextareaÖеÄÔªËؽøÐпØÖÆ¡£
¡¡       »ù±¾ÊôÐÔ£º
                 name£ºÉ趨Ìá½»ÐÅϢʱµÄÐÅÏ¢Ãû³Æ£¬¶ÔÓ¦HTMLÎĵµTextareaµÄName¡£
                 Value£ºÓÃÒÔÉ趨³öÏÖÔÚ´°¿ÚÖжÔÓ¦HTMLÎĵµÖÐValueµÄÐÅÏ¢¡£
    


Ïà¹ØÎĵµ£º

JavaScriptµÄreplace·½·¨ÓëÕýÔò±í´ïʽ½²½â

 
replace·½·¨µÄÓï·¨
ÊÇ£ºstringObj.replace(rgExp, replaceText)
ÆäÖÐstringObjÊÇ×Ö·û´®(string)£¬reExp¿ÉÒÔÊÇÕýÔò±í´ïʽ¶ÔÏó(RegExp)Ò²¿ÉÒÔÊÇ×Ö·û´®
(string)£¬replaceTextÊÇÌæ´ú²éÕÒµ½µÄ×Ö·û´®¡£¡£ÎªÁË°ïÖú´ó¼Ò¸üºÃµÄÀí½â£¬ÏÂÃæ¾Ù¸ö¼òµ¥Àý×Ó˵Ã÷Ò»ÏÂ
<script language="javascript">
var str ......

JavaScript replace() ·½·¨

 
¶¨ÒåºÍÓ÷¨
replace() ·½·¨ÓÃÓÚÔÚ×Ö·û´®ÖÐÓÃһЩ×Ö·ûÌæ»»ÁíһЩ×Ö·û£¬»òÌæ»»Ò»¸öÓëÕýÔò±í´ïʽƥÅäµÄ×Ó´®¡£
Óï·¨
stringObject.replace(regexp,replacement)
²ÎÊý
ÃèÊö

regexp
±ØÐè¡£¹æ¶¨ÁËÒªÌæ»»µÄģʽµÄ RegExp ¶ÔÏó¡£Çë×¢Ò⣬Èç¹û¸ÃÖµÊÇÒ»¸ö×Ö·û´®£¬Ôò½«Ëü×÷ΪҪ¼ìË÷µÄÖ±½ÓÁ¿Îı¾Ä£Ê½£¬¶ø²»ÊÇÊ×ÏÈ ......

javascript²Ù×÷XmlÔöɾ¸Ä²é(IEÏÂ)

HTMLÎļþ£º
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>js²Ù×÷XmlÔöɾ¸Ä²é(IEÏÂ)</title>
<script type="text/jav ......

ÒÔ°ÑjavaScriptǶÈëµ½swfÀïÁË


[ÐÂÎÅ×ÊѶ] ¿ÉÒÔ°ÑjavaScriptǶÈëµ½swfÀïÁË
×ÊѶÀàÐÍ: ·­Òë
À´Ô´Ò³Ãæ: http://www.kennybunch.com/blog/2009/09/embedding-javascript-into-a-swf/
×ÊѶԭ±êÌâ: Embedding JavaScript into a SWF
×ÊѶԭ×÷Õß: Kenny Bunch
flex ¿ª·¢ÕßÓ¦¸Ã¶ÔʹÓÃEmbedÔªÊý¾Ý±êǩǶÈë¸÷ÖÖ×ÊÔ´¶¼ºÜÊìϤÁË£¬ÏÖÔÚÔÚflash cs4ÖÐͬÑù¿ÉÒ ......

Javascript±Õ°ü£¨Closure£©

±Õ°ü£¨closure£©ÊÇJavascriptÓïÑÔµÄÒ»¸öÄѵ㣬ҲÊÇËüµÄÌØÉ«£¬ºÜ¶à¸ß¼¶Ó¦Óö¼ÒªÒÀ¿¿±Õ°üʵÏÖ¡£
ÏÂÃæ¾ÍÊÇÎÒµÄѧϰ±Ê¼Ç£¬¶ÔÓÚJavascript³õѧÕßÓ¦¸ÃÊǺÜÓÐÓõġ£
Ò»¡¢±äÁ¿µÄ×÷ÓÃÓò
ÒªÀí½â±Õ°ü£¬Ê×ÏȱØÐëÀí½âJavascriptÌØÊâµÄ±äÁ¿×÷ÓÃÓò¡£
±äÁ¿µÄ×÷ÓÃÓòÎ޷ǾÍÊÇÁ½ÖÖ£ºÈ«¾Ö±äÁ¿ºÍ¾Ö²¿±äÁ¿¡£
JavascriptÓïÑÔµÄÌØÊâÖ®´¦£¬¾ÍÔÚÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ