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

javaScriptÖеÄinnerText»ðºüä¯ÀÀÆ÷²»Ö§³Ö

ÕâÁ½ÌìµÄ¹¤×÷ÖÐÓöµ½Ò»¸öÓйØjsµÄÎÊÌ⣬ºÜÓôÃÆÓöµ½jsÎÊÌ⣬ÒòΪûÓб¨´í£¬Äã¸ù±¾¾Í²»ÖªµÀ×Ô¼º´íÔÚÄÄÀï¡£
Æäʵ¾ÍÊǹØÓÚ“document.getElementById("ss").innerText”µÄÎÊÌ⣬ÎÒÉÏÍø²é¹ØÓÚjsä¯ÀÀÆ÷µÄ¼æÈÝÎÊÌ⣬¿ÉÊǶ¼¸ø³öµÄ½âÊÍÊÇ£º
“HTML¶ÔÏó»ñÈ¡ÎÊÌâ
FireFox
£ºdocument
.getElementById
("idName");
ie:document
.idname»òÕßdocument
.getElementById
("idName").
½â¾ö°ì·¨£ºÍ³Ò»Ê¹ÓÃdocument
.getElementById
("idName");”
ÎÊÌâÊÇÎÒ¾ÍÊÇʹÓõēdocument
.getElementById
("idName")”£¬¿ÉÊÇFireFox»¹ÊDz»ÐУ¬ºóÀ´²Å²éµ½Ô­À´ÊÇ
FireFox²»Ö§³Ö
innerText£¡
ÎÒºóÀ´µÄ½â¾ö·½·¨¾ÍÊÇÓÓinnerHTML”´úÌæ“innerText”£¬È»ºó½«È¡µ½µÄÄÚÈݹýÂËhtmlµÄ±êÇ©¡£
Àý£º
var obj=document.getElementById("ss").innerHTML;
result=obj.replace(/<.*?>/g,"");
result=result.replace(/&nbsp;/g,"");


Ïà¹ØÎĵµ£º

²Î¼ÓJavaScriptÃæÊÔ£¬±ØÐë¸ã¶®µÄÎÊÌâ

²Î¼ÓJavaScriptÃæÊÔ£¬±ØÐë¸ã¶®µÄÎÊÌ⣨ÍƼö£©
Ò». JavaScriptÖеĶÔÏó.
JavaScriptÖеÄObjectÊÇÒ»×éÊý¾ÝµÄkey-valueµÄ¼¯ºÏ, ÓеãÀàËÆÓÚJavaÖеÄHashMap, ËùÓÐÕâЩÊý¾Ý¶¼ÊÇObjectÀïµÄproperty.
ͨ³£Çé¿öÏÂ, JavaScriptÖн¨Á¢Ò»¸ö¶ÔÏóÓÃ"new"¼ÓÉÏconstructor functionÀ´ÊµÏÖ.
Èçnew Date(), new Object()µÈ.
var bo ......

JavaScriptÖ®±£ÁôСÊýµãºóÖ¸¶¨Î»Êý

ÔÚ¿ª·¢¹ý³ÌÖо­³£Óöµ½Òªµ÷ÕûСÊýµÄ¸ñʽ£¬Èç±£ÁôСÊýµãºóÁ½Î»µÈµÈ¡£·½·¨Ò²ÆÄΪ³£¼û£¬±¸ÍüÈçÏ¡£
 µÚÒ»ÖÖ£¬ÀûÓÃmath.round 
   var original=28.453
1) //round "original" to two decimals
var result=Math.round(original*100)/100;  //returns 28.45
2) // round "original" to 1 dec ......

JavaScriptʼþ¼¯

Ò»°ãʼþ Ê¼þ ä¯ÀÀÆ÷Ö§³Ö ÃèÊö 
onClick IE3|N2|O3 Êó±êµã»÷ʼþ£¬¶àÓÃÔÚij¸ö¶ÔÏó¿ØÖƵķ¶Î§ÄÚµÄÊó±êµã»÷ 
onDblClick IE4|N4|O Êó±êË«»÷ʼþ 
onMouseDown IE4|N4|O Êó±êÉϵİ´Å¥±»°´ÏÂÁË 
onMouseUp IE4|N4|O Êó±ê°´Ïºó£¬ËÉ¿ªÊ±¼¤·¢µÄ ......

JavaScriptÖеÄ5ÖÖʼþʹÓ÷½Ê½½â˵(ת)


JavaScriptÖеÄ5ÖÖʼþʹÓ÷½Ê½½â˵(ת)

Ϊ×é¼þÌṩʼþ´¦ÀíÈë¿Ú£¬¿ÉÒÔ¼«´óµÄÌá¸ß×é¼þµÄ·â±ÕÐÔ£¬Í¬Ê±ÓÖÄÜÈÃ×é¼þºÜºÃµÄºÍÍâ½çͨÐÅ¡£²¢ÇÒÕâÒ²ÊÇÎÒÃÇÒѾ­Ï°¹ßʹÓõÄÒ»ÖÖ¿ª·¢Ä£Ê½£¬.NET¡¢DHTMLµÈ¶¼ÌṩÁËÒ»Ì×ÍêÕûµÄʼþ´¦ÀíÄ£ÐÍ¡£ÏÂÃæÊǹØÓÚʹÓÃDHTMLÖÐʼþµÄÒ»¸ö×ܽᡣ
    DHTMLÌṩÁË3ÖÖʼþµÄÊ¹Ó ......

ÇÉÓÃjavascript»ñµÃÏÂÔصØÖ·


ͻȻ¼äÏëÈ¥ÏÂÊ×fire in the holeµÄÁåÉù£¬ÓÚÊÇÓÃsosoÕÒÁËһϣ¬½øÈëÁËÊÖ»úÀÖÔ° £¨http://download.shouji.com.cn/do/wave?html=&inputname=wave&wname=Fire+in+the+hole+&thsubmit=%E6%90%9C%E7%B4%A2£©£¬Ñ¡Ôñfire in the hole£¬µ¯³ö¸ö´°¿Ú£¬ÌáʾÈÃÊäÈëÊÖ»úºÅÂë¡£ÔÎËÀ£¬²»¾ÍÏÂÊ׸èÂ»¹²»ÈÃÖ±½ÓÏ¡£ºÇºÇ£¬·¢Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ