css javascriptµÄÎÊÌâgetElementById.type.display
ÎÒÔÚÍøÉÏ¿´µ½ÓÐÈËÕâÑùд£º
getElementById("").style.display="none"
»¹ÓÐÒ»¸öÊÇgetElementById("").attributes['class'].value = ''ÎÒ²éÁËÏÂÖªµÀÊÇͨ¹ýIdµÃµ½displayµÄÊôÐÔºÍclassµÄÊôÐÔ,ÎÒÏëÎÊÏ£¬ÒªµÃµ½display±ØÐëÓÃ.styleÂð£¿attributesÊǵõ½class£¬ÄÇÎÒ¿ÉÒÔд³Éattributes['display']Âð£¿attributesºÍstyleÓÐÊ²Ã´Çø±ð£¿
¸øÄã¿´¸öʾÀý£¬Ï£ÍûÄãÄÜ¿´Ã÷°×
<div id="test" class="testCss" style="display:none;font-size:12px"> </div>
ÊÇ·ñ¿´Ã÷°×ÁË£¿
ÒªµÃµ½display±ØÐëÓÃ.styleÂð£¿
¶÷
attributesÊǵõ½class£¬ÄÇÎÒ¿ÉÒÔд³Éattributes['display']Âð£¿
²»¿ÉÒÔ
attributesºÍstyleÓÐÊ²Ã´Çø±ð£¿
<td id="tdId" class="c1" style="display:none"> </td>
id,class,style¶¼ÊÇÊôÐÔ
attributesÊÇÊôÐÔ¼¯ºÏ
ͨ¹ýgetElementById("").attributes['style']Äܵõ½styleÊôÐÔ
attributesÊÇÒ»¸ö¼¯ºÏ£¬µÃͨ¹ýϱêÀ´·ÃÎÊ£¨×¼È·µÄ˵£¬ÊǸömap£¬Í¨¹ýkeyÀ´·ÃÎÊ£©¡£
getElementById("").style
getElementById("").attributes['style']
ÎÒ¾õµÃÕâÁ½ÖÖд·¨ÊÇÒ»ÑùµÄ¡£
ÁíÍ⣬ĿǰÁ÷ÐеÄjs¿ò¼Ü£¬ÒѾ²»ÐèҪдÈç´ËÈß³¤µÄ´úÂëÁË£¬ºÜ·½±ã¡£Äã¿ÉÒÔÊÔÊÔ¡£
ллÄãÃÇ£¬ÎÒéÈû¶Ù¿ª°¡£¬ÓÈÆäÊÇ2Â¥µÄ»Ø´ð
Ã÷°×Á˾ͽáÌùÉ¢·Ö°É£¬¹þ¹þ
Java code
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.c
Ïà¹ØÎÊ´ð£º
±ÈÈçÓÐÒ»¸ötextbox£¬Óû§ÊäÈëºóµãbutton°´Å¥Ê±£¬ÊµÏÖÓÃJavaScript¶ÔtextboxÊäÈëÐÅÏ¢µÄÑéÖ¤£¬±ÈÈçÑéÖ¤Óû§ÊäÈëµÄÊÇ·ñÊÇÊý×Ö¡£
Ï£Íû½«HTML´úÂëÒ»²¢Ð´³öÀ´¹þ£¬Ð»Ð»¡£
HTML code:
<!DOCTYPE html PUBLIC &quo ......
ºǫ́ÓÐÒ»¸öº¯Êý protected string Fun1(int a, string b)
ÎÒÏëÔÚjavascript´úÂëÖе÷ÓÃËü£¬Ôõô×ö£¿
function GridBind()
{
var a = 1;
var b='s';
& ......
ÈçÌ⣺
²Î¿¼http://topic.csdn.net/u/20090912/12/af0562a2-6869-48b8-a1a4-bc165c02fa4d.html
ÖÐÎҵĻظ´
°ÑxmlReportData.async = "false"; ¸Ä³ÉxmlReportData.async = "true";¾ÍÊÇÒì² ......
var str="reguser_do.asp?psw_value="+obj.value+"®id_value="+obj.id+"&ac_name="+ajax
ÎÒÕâÑùÁ¬½ÓÄÄÀï´íÁË£¿ÎªÊ²Ã´ÒªÕâÑùд£¿
ûÓдíÎó£¬Ö»ÊÇajaxÊǸöʲô±äÁ¿£ ......