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

JavaScriptµ÷ÊÔ¡¢²âÊԺͷ¢²¼¹¤¾ß

ÔÚ³ÌÐòÔ±ÔÓÖ¾ÉÏ¿´µ½Ò»Æª¶ÌÎÄ¡¶Ç°¶Ë¿ª·¢¹¤¾ß¸ÅÀÀ¡·¡£¾õµÃºÜÓÐʵÓüÛÖµ¡£ÏÖ×ܽáÈçÏ£º
Ò»¡¢µ÷ÊÔ¹¤¾ß
1.firebug
2.Web Developer Toolbar--µ÷ÕûÒ³ÃæµÄ¸÷¸öϸ½Ú
3.IE Developer Toolbar--µ÷ÊÔIEµÄHTMLºÍCSS
4.Companion.JS--µ÷ÊÔIEµÄJavascript
5.Fiddler--Webµ÷ÊÔ´úÀí£¬¼Ç¼±¾»úµ½»¥ÁªÍøµÄËùÓÐHTTP(S)ÇëÇó¡£
¶þ¡¢²âÊÔ¹¤¾ß
1.YSlow--¼ì²âÒ³ÃæµÄÐÔÄÜ
2.PageSpeed--¼ì²âÒ³ÃæµÄÐÔÄÜ
3.JSLint--JavaScriptÔ¤·¢¼ìÑ鹤¾ß
Èý¡¢·¢²¼¹¤¾ß
1.Closure--JavaScript¿ª·¢¹¤¾ß¼¯
2.YUI Compressor--½«Ô´´úÂëѹËõºóÔÙ·¢²¼µ½ÏßÉÏ
3.Mircrosoft Ajax Minifier--½«Ô´´úÂëѹËõºóÔÙ·¢²¼µ½ÏßÉÏ
4.Closure Compiler--½«Ô´´úÂëѹËõºóÔÙ·¢²¼µ½ÏßÉÏ


Ïà¹ØÎĵµ£º

×Ö·û´®ÖеÄJSONת»»³ÉJAVASCRIPTµÄOBJECT

// ÏÂÃæ´úÂë¿éʵÏÖÁËstring.parseJSON·½·¨
(function(s){
  // This prototype has been released into the Public Domain, 2007-03-20
  // Original Authorship: Douglas Crockford
  // Originating Website: http://www.JSON.org
  // Originating URL    : http://www.JSON.o ......

javascript ʱ¼ä±È½ÏʵÏÖ´úÂë

web¿ª·¢ÖÐÓÐʱÐèÒª¶ÔÊäÈë¿òÖеÄʱ¼ä£¨Ö÷ÒªÊÇ¿ªÊ¼Ê±¼äºÍ½áÊøÊ±¼ä£©½øÐбȽϣ¬ÍøÉÏËÑË÷ÁËÒ»·¬£¬·¢ÏÖÓв»ÉÙÊÇÎÞЧµÄ£¬ÒÔÏ·½·¨¾­Ð¡µÜ¼ìÑéȷʵÓÐЧ£¬Ìش˹²Ïí¡££¨Çë¹Ø×¢ºìÉ«²¿·Ö£©
function ValidtorTime(){
var d1 = new Date(document.getElementById('txbfromDate').value.replace(/\-/g, "\/"));
var d2 = new Date(do ......

ÓÃJavascriptʵÏÖ¾²Ì¬¶ÔÏó¡¢¾²Ì¬·½·¨ºÍ¾²Ì¬ÊôÐÔ

JavascriptÓïÑÔµÄÃæÏò¶ÔÏóÌØÕ÷ºÜÈõ£¬ÆäËûÃæÏò¶ÔÏóÓïÑÔÔÚ´´½¨ÀàʱֻҪʹÓùؼü×Östatic¼´¿ÉÖ¸¶¨ÀàΪ¾²Ì¬À࣬JavascriptûÓÐÌṩstaticÕâÑùµÄ¹Ø¼ü×Ö£¬ÒªÈÃJavascriptÒ²¾ßÓГ¾²Ì¬”ÌØÐÔÖ»Óп¿Ò»Ð©“Ææ¼¼ÒùÇÉ”ÁË¡£
´úÂëÖÐÁоÙÁËÁ½ÖÖ¾²Ì¬·½·¨/ÊôÐÔµÄʵÏÖ·½Ê½£¬Ò»ÖÖÊǾ²Ì¬ÀàµÄ¾²Ì¬·½·¨ºÍÊôÐÔ£¬ÁíÒ»ÖÖÊǷǾ ......

javascript ¿ØÖÆ DIVµÈhtmlÔªËØµÄÏÔʾºÍÒþ²Ø

1
¡¢±àд
js
º¯Êý
<script
type="text/javascript">
    function display(id){
        var
traget=document.getElementById(id);
        
if(traget.style.display=="none"){
&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ