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

JavaScriptÌâÐÍ

 1£®ÈçºÎ»ñÈ¡±íµ¥<select>ÓòµÄÑ¡Ôñ²¿·ÖµÄÎı¾£¿
<form name="a">
<select name="a" size="1" onchange="_sel(this)">
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
</select>
</form>

<mce:script type="text/javascript"><!--
function _sel(obj){
alert("ÏÔʾÎı¾£º" + obj.options[obj.selectedIndex].text);
alert("Öµ£º" + obj.options[obj.selectedIndex].value);
}
// --></mce:script>

2.javascript¿ØÖÆÒ³Ãæ¿Ø¼þÒþ²ØÏÔʾµÄÁ½ÖÖ·½·¨
javascript¿ØÖÆÒ³Ãæ¿Ø¼þÒþ²ØÏÔʾµÄÁ½ÖÖ·½·¨£¬·½·¨µÄ²»Í¬Ö®´¦ÔÚÓڿؼþÒþ²ØºóÊÇ·ñ»¹ÔÚÒ³ÃæÉÏռλ
·½·¨Ò»£º
document.all["PanelSMS"].style.visibility="hidden";
document.all["PanelSMS"].style.visibility="visible";
·½·¨¶þ£º
document.all["PanelSMS"].style.display="none";
document.all["PanelSMS"].style.display="inline";
·½·¨Ò»Òþ²Øºó Ò³ÃæµÄλÖû¹±»¿Ø¼þÕ¼Óà ֻÊDz»ÏÔʾ ÀàËÆÓÚ.netÑéÖ¤¿Ø¼þµÄDisplay=Static
·½·¨¶þÒþ²Øºó Ò³ÃæµÄλÖò»±»Õ¼Óà ÀàËÆÓÚ.netÑéÖ¤¿Ø¼þµÄDisplay=Dynamic

3£®var a = 10; var b = 20; var c = 10; alert(a = b); alert(a == b); alert(a == c);½á¹ûÊÇ£¿
ÒÔÏÂÊǴ𰸣ºa = b ÊǸ³Öµ,a == bÊÇÅжÏÖµÊÇ·ñÏàͬlect>ÓòµÄÑ¡Ôñ²¿·ÖµÄÎı¾£¿

4. ±àдһ¸ö·½·¨ ÇóÒ»¸ö×Ö·û´®µÄ×Ö½Ú³¤¶È£¿
<mce:script language="javascript" type="text/javascript"><!--
new function(s)
{
if(!arguments.length||!s) return null;
if(""==s) return 0;
var l=0;
for(var i=0;i<s.length;i++)
{
if(s.charCodeAt(i)>255) l+=2;
else l++;
}
alert(l);
}("helloÄãºÃ£¬ÎÒºÃ,´ó¼ÒºÃ£¡world!");
// --></mce:script>

5. ÈçºÎ¿ØÖÆalertÖеĻ»ÐÐ
<mce:script language="javascript" type="text/javascript"><!--
alert("hello\nworld");
// --></mce:script>

6. °´ÕÕ¸ñʽ xxxxÄêxxÔÂxxÈÕxxʱxx·ÖxxÃ붯̬ÏÔʾʱ¼ä ÒªÇó²»×ã10µÄ²¹0£¿
<mce:script language="javascr


Ïà¹ØÎĵµ£º

ʹÓÃDisplayTagºÍJavaScript´´½¨ÔöÇ¿Ð͵ıí¸ñ


Every Web developer has to tangle with tables. A new open source library, DisplayTag, can make life with tables much more organized. Find out how to combine the DisplayTag library with JavaScript to make a slick app that displays line item details.  
by Stephen Strenn
isplaying data in a t ......

javascript to ajax(Ò»)

AJAX ÔÚä¯ÀÀÆ÷Óë Web ·þÎñÆ÷Ö®¼äʹÓÃÒì²½Êý¾Ý´«Ê䣨HTTP ÇëÇ󣩣¬ÕâÑù¾Í¿ÉÊ¹ÍøÒ³´Ó·þÎñÆ÷ÇëÇóÉÙÁ¿µÄÐÅÏ¢£¬¶ø²»ÊÇÕû¸öÒ³Ãæ¡£
AJAX »ùÓÚ Web ±ê×¼
AJAX »ùÓÚÏÂÁÐ Web ±ê×¼£º
JavaScript
XML
HTML
CSS
ÔÚ AJAX ÖÐʹÓÃµÄ Web ±ê×¼Òѱ»Á¼ºÃ¶¨Ò壬²¢±»ËùÓеÄÖ÷Á÷ä¯ÀÀÆ÷Ö§³Ö¡£AJAX Ó¦ÓóÌÐò¶ÀÁ¢ÓÚä¯ÀÀÆ÷ºÍƽ̨¡£
Deafault. ......

JSEclipse javaScript¿ª·¢¹¤¾ß°²×°ÅäÖÃ

ZendStudioÖа²×°JSEclipse²å¼þ
Help -> Install New SoftWare
Work with:     add
name:JSEclipse  Location:
http://download.macromedia.com/pub/labs/jseclipse/autoinstall
°²×°Íê³ÉºóÅäÖãº
ÐèÒª¸æËß Eclipse ËüÓÐÒ»¸ö JavaScript ÎļþµÄרÓñ༭Æ÷£¬ÕâÑùËüÓÃÎĽ«²»Ê¹ÓÃͨ±¾±à¼­Æ ......

Javascript ×î¼òµ¥¼ì²âÍøËٵķ½·¨ºÍÓ¦ÓÃ


ÍøËÙºÜÂý£¬µ«Óֵôò¿ª Flash ÊÇÒ»¼þºÜÍ´¿àµÄÊÂÇé£¬ÌØ±ðÊÇ Silverlight À´ÁÙÖ®¼Ê£¬Õâ¸ö¼¼Êõ¿ÉÄÜÓеãÓÃ
¾ßÌå´úÂëÈçÏÂ
<SCRIPT LANGUAGE="JavaScript">
var starttime = new Date()
</SCRIPT>
<img src="images/ConvLogo.JPG?id=<%Int(37462 * Rnd +&n ......

JavaScriptÖÐÄÚÖöÔÏó

JavaScriptÖÐÌṩÁËһЩ·Ç³£ÓÐÓõÄÄÚ²¿¶ÔÏó×÷Ϊ¸ÃÓïÑԹ淶µÄÒ»²¿·Ö£¬Ã¿Ò»¸öÄÚ²¿¶ÔÏó¶¼ÓÐһЩ·½·¨ºÍÊôÐÔ¡£
JavaScriptÖÐÌṩµÄÄÚ²¿¶ÔÏó°´Ê¹Ó÷½Ê½¿ÉÒÔ·ÖΪ¶¯Ì¬¶ÔÏóºÍ¾²Ì¬¶ÔÏó¡£
¶¯Ì¬¶ÔÏó£ºÔÚÒýÓÃËûµÄÊôÐԺͷ½·¨ÊÇ£¬±ØÐëʹÓÃnew¹Ø¼ü×Ö´´½¨Ò»¸ö¶ÔÏóʵÀý£¬È»ºó²Å¿ÉÒÔʹÓÓ¶ÔÏóʵÀýÃû.³ÉÔ±”µÄ¸ñʽÀ´·ÃÎÊÆäÊôÐԺͷ½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ