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

javascript¼ì²âä¯ÀÀÆ÷°æ±¾

1  JavaScript¼ì²âä¯ÀÀÆ÷°æ±¾ ʹÓà JavaScript ¼ì²â¹ØÓÚ·ÃÎÊÕßµÄä¯ÀÀÆ÷Ãû³Æ¼°Æä°æ±¾¡£ <html>
<body>
<script type="text/javascript">
var browser=navigator.appName
var b_version=navigator.appVersion
var version=parseFloat(b_version)
document.write("ä¯ÀÀÆ÷Ãû³Æ£º"+ browser)
document.write("<br />")
document.write("ä¯ÀÀÆ÷°æ±¾£º"+ version)
</script>
</body>
</html>



2  ¼ì²âä¯ÀÀÆ÷µÄ¸ü¶àÐÅÏ¢

ʹÓà JavaScript ¼ì²â¹ØÓÚ·ÃÎÊÕßä¯ÀÀÆ÷µÄ¸ü¶àÐÅÏ¢¡£




<html>
<body>
<script type="text/javascript">
document.write("<p>ä¯ÀÀÆ÷£º")
document.write(navigator.appName + "</p>")
document.write("<p>ä¯ÀÀÆ÷°æ±¾£º")
document.write(navigator.appVersion + "</p>")
document.write("<p>´úÂ룺")
document.write(navigator.appCodeName + "</p>")
document.write("<p>ƽ̨£º")
document.write(navigator.platform + "</p>")
document.write("<p>Cookies ÆôÓãº")
document.write(navigator.cookieEnabled + "</p>")
document.write("<p>ä¯ÀÀÆ÷µÄÓû§´úÀí±¨Í·£º")
document.write(navigator.userAgent + "</p>")
</script>
</body>
</html>









Ïà¹ØÎĵµ£º

JavaScript½Ì³Ì ´ÓÈëÃŵ½¾«Í¨

JavaScriptÊÇÓÉNetscape¹«Ë¾¿ª·¢²¢ËæNavigatorµ¼º½ÕßÒ»Æð·¢²¼µÄ¡¢½éÓÚJava
ÓëHTMLÖ®¼ä¡¢»ùÓÚ¶ÔÏóʼþÇý¶¯µÄ±à³ÌÓïÑÔ£¬ÕýÈÕÒæÊܵ½È«ÇòµÄ¹Ø×¢¡£ÒòËüµÄ¿ª·¢»·¾³¼òµ¥£¬²»ÐèÒªJava±àÒëÆ÷£¬¶øÊÇÖ±½ÓÔËÐÐÔÚWebä¯ÀÀÆ÷ÖУ¬¶øÒò±¶
ÊÜWebÉè¼ÆÕßµÄËù°®¡£
ÕâÒ»Ì×JavaScript½Ì³Ì·Ö¾Å¸öÕ½ڴÓʲôÊÇJavaScript¡¢JavaScriptµÄ¼òµ¥Ó¦ÓÃÒ»Ö ......

ÉÏÏßÇ°Óà JSMin ѹËõÄãµÄ JavaScript µµ°¸


ÔÚÍøÒ³Öж¯Ì¬ÔØÈëµÄ JavaScript ¶ÔÓÚÒ³ÃæÏÔʾµÄËÙ¶ÈÓ°ÏìÉõ¶à£¬²»µÃ²»×¢Ò⣡
ÓÈÆäÊǺܶàÈËÏ°¹ß°Ñ JavaScript include дÔÚ <head> Çø¿éÖУ¬ÕâÑùÒ»À´×î´óµÄÎÊÌâ¾ÍÊÇ Browser ±ØÐëÒªµÈµ½ JavaScript È«²¿¶ÁÍêºó²Å»á¿ªÊ¼ÏÔʾÍøÒ³£¬Èç¹ûÄãÏñÐÅÒå·¿ÎÝÕâÑù£¬¶ÁÒ»¸öÊ×Ò³ÒªÏÂÔØ 18 ¸ö JavaScript ÍⲿµµÇÒ¡¸Ã»ÓдóƵ¿í¡¹µÄ» ......

javascript ר·Ã

Ô­Öø£ºÀîÕ½(leadzen).ÉîÛÚ 2008-2-23
ÒªÀí½âJavaScript£¬ÄãµÃÊ×ÏÈ·Å϶ÔÏóºÍÀàµÄ¸ÅÄ»Øµ½Êý¾ÝºÍ´úÂëµÄ±¾Ô­¡£Ç°Ãæ˵¹ý£¬±à³ÌÊÀ½çÖ»ÓÐÊý¾ÝºÍ´úÂëÁ½ÖÖ»ù±¾ÔªËØ£¬¶øÕâÁ½ÖÖÔªËØÓÖÓÐמÀ²ø²»ÇåµÄ¹Øϵ¡£JavaScript¾ÍÊÇ°ÑÊý¾ÝºÍ´úÂ붼¼ò»¯µ½×îԭʼµÄ³Ì¶È¡£
    JavaScriptÖеÄÊý¾ÝºÜ¼ò½àµÄ¡£¼òµ¥Êý¾ÝÖ»ÓÐ undefi ......

Ê·ÉÏ×îÅ£X×î¼ò½àµÄJavascriptͼƬËõ·Å´úÂë

Ô´Â룺
function resize(img, width, height) {
 (img.width > img.height)
 ? ((img.height = Math.min(height, width * img.height/img.width)) || (img.width = Math.min(width, img.width)))
 : ((img.width = Math.min(width, height * img.width/img.height)) || (img.height = Math.min(hei ......

Javascriptº¯Êý´óÈ« £¨¸öÈ˺¯ÊýÊÕ¼¯£©


/*
 -------------- º¯Êý¼ìË÷ --------------
 trimº¯Êý:                         trim() lTrim() rTrim()
 Ð£Ñé×Ö·û´®ÊÇ·ñΪ¿Õ:  &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ