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

javascript ʵÏÖÁª¶¯µÄÏÂÀ­²Ëµ¥

<form name="f1"><select name="s1"
 onchange="chg(document.f1.s1,document.f1.s2)">
 <option value="½­Î÷">½­Î÷</option>
 <option value="¸£½¨">¸£½¨</option>
</select><select name="s2">
 <option value="1">1</option>
</select></form>
<script>
 //´´½¨¶ÔÏó£¬Êý¾Ý£¬Öµ£¬Îı¾
 function obj(aData, aValue, aText) {
  this.Data = aData;
  this.Value = aValue;
  this.Text = aText;
 }
 //ÉèÖÃÑ¡ÏîÊý¾ÝÊý×飬¿ÉÒÔÌí¼Ó¶à¸ö²ÎÊýΪ"Ô´µØÖ·,Ñ¡ÔñÖµ£¬Ñ¡ÔñÎı¾"
 var Set_data = new Array(
                       new obj('½­Î÷', 'Äϲý', 'Äϲý'),
                       new obj('½­Î÷', '¾Å½­','¾Å½­'),
                       new obj('¸£½¨', '¸£ÖÝ', '¸£ÖÝ'),
                       new obj('¸£½¨', 'ÏÃÃÅ', 'ÏÃÃÅ'));
 //¸Ãº¯Êý½ÓÊÜÁ½¸ö²ÎÊý——Á½¸öÏÂÀ­²Ëµ¥
 function chg(parent, child) {
  //ÒÔ¸¸²Ëµ¥µÄÑ¡ÖÐÑ¡ÏîµÄÖµ£¬×Ӳ˵¥£¬ºÍÑ¡ÏîÊýÊý¾Ý×éΪ²ÎÊýµ÷ÓÃchgº¯Êý 
  chgComitem(parent.options[parent.selectedIndex].value, child, Set_data);
 }
 function chgComitem(parentValue, child, objs) {
  //¸Ä±ä×Ӳ˵¥ //1.ÒÔ×Ӳ˵¥Îª²ÎÊýµ÷Óú¯Êý 
  DelAllComitem(child);
  //2.±éÀúËùÓеÄÑ¡ÏîÊý¾Ý 
  for (i = 0; i < objs.length; i++) {
   //Èç¹ûÑ¡ÏîÊý¾ÝµÄDataÓ븸²Ëµ¥Ñ¡ÖÐÖµÒ»ÑùµÄ»°  
   if (objs[i].Data == parentValue)
    //3.ÒÔ×Ӳ˵¥£¬Ñ¡ÏîÊý¾ÝµÄÖµ£


Ïà¹ØÎĵµ£º

javascriptЧÂʾ­Ñé̸(Ò»)

±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔ­À´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾­Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾­¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷Ô­Òò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......

Javascript±äÁ¿×÷ÓÃÓò

ÇëÏÈ¿´ÏÂÌ⣺
if(true)
{
     a = 1;
}
alert(a);  //Êä³öɶ£¿
if(true)
{
    var a = 1; 
}
alert(a);  //ÕâÓÖÊä³öʲô£¿
ÔÚfirefox3.5Ï£¬µÚÒ»¸öÊä³ö1;µÚ¶þ¸öÊä³öundefined£¡£¡£¡
ΪɶÄØ£¿ºÇºÇ£¬±¾ÈËÔÚ´Ë°àÃÅŪ¸«Ò»Ï£º
Ò»°ãÇé¿öÏÂȱʡvarÉùÃ÷ʱ£¬Ä¬È ......

VB.NET/C# and JavaScript communication

Introduction
This article is about passing data between VB.NET/C# WinForms and JavaScript.
Before reading further, let me warn you that this article is not about ASP.NET. Concepts covered in the article are applied to Desktop applications.
Background
I was working on a project which required dat ......

ͨ¹ýjavascript»ñµÃurl²ÎÊý

Ò³ÃæÌá½»Êý¾ÝÒ»°ãÓÐÁ½ÖÖ·½·¨£ºget,post¡£post¾ÍÊÇËùνµÄformÌá½»£¬Ê¹ÓÃÊÓͼ£»getÊÇͨ¹ýurlÌá½»¡£
Get·½·¨Ò»°ãÓúǫ́´úÂ루Èçasp,asp.net£©»ñµÃ²ÎÊý£¬´úÂëºÜ¼òµ¥£ºRequest.QueryString["id"];¼´¿É»ñÈ¡¡£ 
ÓÐЩʱºòÐèÒªÖ±½ÓÔÚǰ̨»ñÈ¡url²ÎÊý£¬ÒªÓõ½javascript£¬jsûÓÐÖ±½Ó»ñÈ¡url²ÎÊýµÄ·½·¨£¬ÄÇô£¬ÎÒÃÇÈçºÎͨ¹ýjs ......

javascript´ò¿ªÑ¡Ôñ¶Ô»°¿ò/±£´æ¶Ô»°¿ò

¡¾ÒýÓõØÖ·¡¿http://hi.baidu.com/rayshow/blog/item/9102258daac46810b31bbad3.html
ÔÚä¯ÀÀÆ÷ÖÐËäÈ»´ò¿ªÑ¡Ôñ¶Ô»°¿òºÍ±£´æÎļþ¶Ô»°¿òµÄ¹¦Äܲ¢²»³£Ê¹Ó㬵«ÓÐʱÈÔÈ»»áÓõÃÉÏ£¬±ÈÈçÒ»¸öweb°æµÄ²¥·ÅÆ÷£¬ÈÃÓû§Ñ¡Ôñ±¾µØµÄÊÓƵ»òÒôƵÎļþµÈ¡£¶ÔÓÚ´ò¿ªÑ¡ÔñÎļþ¶Ô»°¿òÀ´Ëµ£¬Ïà¶Ô±È½Ï¼òµ¥£¬Ö»ÐèÒªÔÚÒ³ÃæÄÚ·ÅÒ»¸öfile±êÇ©£¬¿ÉÒÔ½«Æä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ