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

JavaScriptµÄÀàÐÍת»»(×Ö·ûתÊý×Ö£¬Êý×Öת×Ö·û)

ÔÚJavaÖУ¬»ù±¾ÀàÐÍÖ®¼äµÄÇ¿ÖÆת»»Ò²²»ÊÇÕâÑùµÄ£¬±ÈÈ磬ÕûÊýҪת»»³É×Ö·û´®£¬±ØÐëʹÓÃInteger.toString()¾²Ì¬·½·¨»òÕßString.valueOf()¾²Ì¬·½·¨£¬°Ñ×Ö·û´®×ª»»ÎªÕûÊý£¬±ØÐëʹÓÃInteger.valueOf()¡£
¿É¼û£¬²»ÄÜ°ÑJavaScriptÖеÄÀàÐÍת»»¿´×÷Ϊ“Ç¿ÖÆÀàÐÍת»»”¡£
ÔÚJavaScriptÖУ¬DoubleÀàÐͺÍIntÀàÐͶ¼ÊÇ¿´×÷ΪNumber¶ÔÏó£¬Òò´ËÎÞÂÛÊÇtypeof 1»¹ÊÇtypeof 1.0£¬¶¼ÊÇ·µ»Ønumber¡£ÕâÑùÎÒÃÇ¿ÉÒÔ²»ÓÃÈ¥¹ÜÊÇInt»¹ÊÇDoubleÀàÐÍ£¬ÈÃJavaScript½âÊÍÒýÇæÄÚ²¿È¥´¦Àí¡£
Èç¹ûÒª°ÑNumberת»»³ÉString£¬¿ÉÒÔʹÓÃNumberµÄtoString()·½·¨£¬£¨Ïó(1).toString()À¨ºÅ±ØÐë»òÕß 1 .toString()¿Õ¸ñ±ØÐ룬·ñÔò»á±àÒë³ö´í£¬Èç¹ûÊDZäÁ¿ÔòÎÞÐ裩£¬»òÕßµ÷ÓÃString()º¯Êý£¬ÕâÁ½ÖÖ·½·¨¶¼»á×Ô¶¯µ÷ÓýâÊÍÒýÇæÄÚ²¿µÄ NumberToString()£¬»òÕ߸ù¾Ý½øÖƵ÷ÓÃÆäËüº¯Êý£¬»ù±¾ÀàËÆ¡£
Èç¹ûÒª°ÑStringת»»³ÉNumber£¬¿ÉÒÔʹÓÃNumber()º¯Êý£¬Ëû»á×Ô¶¯ÅжÏStringÖÐÊÇÕûÊý»¹ÊǸ¡µãÊý£¬È»ºóÄÚ²¿Ê¹ÓÃÏàÓ¦µÄÊý¾ÝÀàÐÍ£¬ÁíÍâ¿ÉÒÔʹÓÃÈ«¾Öº¯ÊýparseInt()ºÍparseFloat()£¬ËûÃǸù¾ÝÄãµÄÒªÇó½øÐÐת»»¡£Í¬ÑùµÄ£¬ËûÃÇÔÚ½âÊÍÒýÇæÄÚ²¿»úÖÆÉÏÊÇʹÓÃÁË StringToNumber£¬StringToIntµÈµÈÄÚ²¿µÄº¯Êý¡£
¶øÈç¹ûÊÇDoubleת»»³ÉInt£¬±ØÐëʹÓÃMath.floor()º¯Êý£¨½ØβȡÕû£©»òÕßMath.round()£¨ËÄÉáÎåÈ룩
Intת»»³ÉDouble£¬ÎÞÐ뿼ÂÇÈκÎÎÊÌ⣬ֱ½Ó°ÑIntµ±³ÉDouble½øÐÐÔËËã
×¢£ºNumber¡¢Stringº¯ÊýÊÇÌØÊâµÄº¯Êý£¬ÔÚJSÒýÇæÖУ¬Ëû»á×Ô¶¯ÅжÏÊÇ×÷Ϊ¹¹Ô캯Êýµ÷Óû¹ÊÇÆÕͨµ÷Óã¬ËùÒԼȿÉÒÔʹÓÃnew¹Ø¼ü×Ö£¬Ò²¿ÉÒÔ×÷Ϊº¯ÊýÖ±½Óµ÷Óá£


Ïà¹ØÎĵµ£º

javascript¼üÅ̼üÂëÖµ±í


keycode 0 =   
keycode 1 =   
keycode 2 =   
keycode 3 =   
keycode 4 =   
keycode 5 =   
keycode 6 =   
keycode 7 =   
keycode&nb ......

javascriptʵÏּ̳еÄÁ½ÖÖ·½·¨

(Ò»)¶ÔÏóð³ä
function A(name){
    this.name = name;
    this.sayHello = function(){alert(this.name+” say Hello!”);};
}
function B(name,id){
    this.temp = A;
    this.temp(name);      &nbs ......

javascriptͼƬä¯ÀÀÆ÷µÄºËÐÄ——ͼƬԤ¼ÓÔØ

javascriptͼƬä¯ÀÀÆ÷µÄºËÐÄ——ͼƬԤ¼ÓÔØ
2009-04-06 10:57
      ÍøÕ¾¿ª·¢Ê±¾­³£ÐèÒªÔÚij¸öÒ³ÃæÐèҪʵÏÖ¶Ô´óÁ¿Í¼Æ¬µÄä¯ÀÀ£¬Èç¹û¿¼ÂÇÁ÷Á¿µÄ»°£¬´ó¿ÉÒÔÏñpconlineÒ»Ñùÿ¸öÒ³ÃæÖ»ÏÔʾһÕÅͼƬ£¬ÈÃÓû§Ã¿¿´Ò»ÕÅͼƬ¾ÍÐèÒªÖØÐÂÏÂÔØÒ»ÏÂÕû¸öÒ³Ãæ¡£²»¹ý£¬ÔÚweb2.0ʱ´ú£¬¸ü¶àÈËÔ¸ÒâÓÃjavas ......

javascriptµÄwindows.open²ÎÊýѧϰ


<SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
file://д/³ÉÒ»ÐÐ
-->
</SCRIPT>
²ÎÊý½âÊÍ£º
<SCRIPT LANGUAGE="javascript"&g ......

javascript¼ì²âä¯ÀÀÆ÷ÀàÐͺͰ汾

Èç¹û¶ÔjavascriptÁ˽ⲻÊÇÌرðÉîÈëµÄ»°,ºÜÈÝÒ׾ͻáд³ö²»¼æÈݵĴúÂë(¾ÍÏñÎÒ),Õâʱºò¾ÍµÃÅжÏä¯ÀÀÆ÷ÁË¡£±ÈÈçʼþÕìÌý¡¢Ò»Ð©Êó±êºÍ¼üÅÌʼþ¡¢RangeµÈ,һЩ¶¼»á²»Ò»Ñù.ÏÂÃæÁгö¼¸ÖÖ³£Óõļì²âä¯ÀÀÆ÷·½·¨£¬ÒÔ÷ϹÛÖÚ!
¶ÔÏó/ÌØÕ÷¼ì²â·¨
¸Ã·½·¨ÊÇÒ»ÖÖÅжÏä¯ÀÀÆ÷ÄÜÁ¦£¨¶ø·Çä¯ÀÀÆ÷µÄÈ·ÇÐÐͺţ©µÄͨÓ÷½·¨¡£´ó²¿·ÖJSר¼ÒÈÏΪÕâ¸ö·½· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ