µ±Ç°Î»Ö㺠´úÂëÃÔ >> JavaScript >> ΪɶΪʲôΪʲô
  Ïêϸ½â¾ö·½°¸

ΪɶΪʲôΪʲô

Èȶȣº248   ·¢²¼Ê±¼ä£º2012-07-31 12:33:46.0
ΪʲôΪʲôΪʲô£¿
JScript code
<a href='javascript:void(0)' id="btn_SheJi" runat="server" style="color:Blue" onclick='alert(<%# Eval("id") %>)'>µãÎÒ</a> 

µãÍêû·´Ó¦£¬£¬£¬£¬£¬

------½â¾ö·½°¸--------------------
<a href='javascript:void(0)' id="btn_SheJi" runat="server" style="color:Blue" onclick='alert(\'<%# Eval("id") %>\')'>µãÎÒ</a>
------½â¾ö·½°¸--------------------
<a href='javascript:void(0)' °ÑÕâ¸ö»»³É<a href='#'ÊÔÊÔ
------½â¾ö·½°¸--------------------
<%# Eval("id") %>Õâ¸öÊÇʲô¡£¡£¡£ÏëҪʵÏÖʲô
------½â¾ö·½°¸--------------------
¼Ó¸ö·ÖºÅÊÔÊÔßÂ
------½â¾ö·½°¸--------------------
<a href='javascript:void(0)' style="color:Blue" onclick=alert('<%# Eval("id") %>')>µãÎÒ</a>
  Ïà¹Ø½â¾ö·½°¸