javascript ʵÏÖÊý¾Ý±í¸ñÏÔʾµÄÕ¹¿ªÓëÕÛµþ
<script language="javascript">
function ShowTableRow(id)
{
var _Row = document.getElementById(id) <!-- »ñÈ¡IDΪTableRowID µÄ¶ÔÏó -->
var _Img = document.getElementById("Img"+id)
<!--alert(_Img)-->
if(_Row.style.display=="none")
{
_Row.style.display="";
_Img.src="arrowUP.gif";
}
else
{
_Row.style.display="none";
_Img.src="arrowDOWN.gif";
}
}
</script>
*******************************
asp/jsp Ò³Ãæ: ÉèÖöÔÏóµÄ ID
.......................
<td width="14%" bgcolor="#ecfaff" ><div align="center"><img src="arrowDOWN.gif" id="Img<%=num%>" onClick="ShowTableRow(<%=num%>)"></div></td>
<td width="12%" bgcolor="#ecfaff" class="style11"></td>
</tr>
<!------ Õ¹¿ª/ÕÛµþ***** ÐÐ-- ³ö³§Á÷Ïò -->
<tr class="style11" bgcolor="#66CC99">
<td colspan="7">
<div id=<%=num%> style="display:none" >
<table width="73%" border="0" align="center" cellpadding="0" cellspacing="1" >
<%
'-- ¸ù¾ÝRS1½á¹û£¬¶¯Ì¬»±í¸ñ
sql1="SELECT ORG_CODE,ORG_NAME, count(*) as OUTNUM1 from "
sql1=sql1+" ciginfo where substring(barcode,3,6)='"+ppdm+"' and
Ïà¹ØÎĵµ£º
ASP.NETÖÐǰ̨javascriptÓëºǫ́´úÂëµ÷ÓÃ
2010-03-31 10:01
.netÖÐC#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃÎÊÌâ¡£
¡¡¡¡ÎÊ£º
¡¡¡¡1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
¡¡¡¡2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
¡¡¡¡3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
¡¡¡¡4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
¡¡¡¡ÎÊÌâ1´ð°¸ÈçÏ£º
¡¡¡¡javaScriptº¯ ......
JavaScriptÒÔECMAScript±ê×¼×÷Ϊ¹¦ÄÜ»ù×¼£¬ECMAScriptÓÐ5ÖÖÔÐÍÀàÐÍ£ºUndefined£¬Null£¬Boolean£¬NumberºÍString¡£
¿ÉÒÔÓÃtypeofÀ´ÅжÏÀàÐÍ£¬Àý£º
var sTemp = "test string";
alert(typeof sTem ......
ÒýÓÃÀàÐÍͨ³£½Ð×öÀࣨclass£©£¬Óöµ½ÒýÓÃֵʱ£¬Ëù´¦ÀíµÄ¾ÍÊǶÔÏó¡£
¶ÔÏóµÄ´´½¨£º
var o = new Object();
Èç¹ûûÓвÎÊý¿ÉÒÔÊ¡ÂÔÀ¨ºÅ£¬È磺var o = new Object;
ObjectÀࣺ
&nb ......
deleteÖ»ÄÜɾ³ý¿ª·¢Õ߶¨ÒåµÄÊôÐÔ»ò·½·¨£¬ÔʼµÄECMAScript·½·¨²»ÄÜɾ³ý£¬ÒòΪ²»ÊÇ¿ª·¢Õ߶¨ÒåµÄ£¬±ÈÈ磺toString()¡£
var o = new Object;
o.name = "Nicholas";
delete o.name;
&n ......
ÎÒÃǶ¼ÖªµÀ£¬ajaxÄÜÌá¸ßÒ³ÃæÔØÈëµÄËٶȵÄÖ÷ÒªÔÒòÊÇͨ¹ýajax¼õÉÙÁËÖظ´Êý¾ÝµÄÔØÈ룬ÕæÕý×öµ½°´Ðè»ñÈ¡£¬¼ÈÈ»Èç´Ë£¬ÎÒÃÇÔÚдajax³ÌÐòµÄʱºò²»·ÁËÍ·ðË͵½Î÷£¬ÔÚ¿Í»§¶ËÔÙ×öÒ»´Î»º´æ,½øÒ»²½Ìá¸ßÊý¾ÝÔØÈëËٶȡ£ÄǾÍÊÇÔÚÔØÈëÊý¾ÝµÄͬʱ½«Êý¾Ý»º´æÔÚä¯ÀÀÆ÷ÄÚ´æÖУ¬Ò»µ©Êý¾Ý±»ÔØÈ룬ֻҪҳÃæδˢУ¬¸ÃÊý¾Ý¾ÍÓÀÔ¶µÄ»º´æÔÚÄÚ´æÖУ¬µ±Ó ......