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

JavaScript³õ²½½Ó´¥

ÔÚ×öÒ»¸öÏîÄ¿ÖУ¬½Ó´¥µ½ÁËJavaScript£¬Ö÷ÒªÊǵã»÷Ò»¸ö²éѯ°´Å¥È»ºóµ¯³öÒ»¸öÍøÒ³¶Ô»°¿ò£¬µ±ÔÚ¶Ô»°¿òÖÐÊäÈë²éѯÌõ¼þ£¬µã»÷È·¶¨ºóÓÖ·µ»Øµ½Ô­À´Ò³Ãæ,µÃ³ö²éѯ½á¹û¡£
Ò³ÃæÈçͼ£º
ÔÚǰ̨¼ÓÁËÒ»¸öÒþ²ØµÄDIV£¬ÀïÃæ·ÅÈëÁ½¸ö¿Ø¼þ¡£ÈçÏ£º
 <div style="display:none">
        <asp:TextBox ID="txtQueryWhere" runat="server"></asp:TextBox>
        <asp:Button ID="btnquery" runat="server" Text="Button" OnClick="btnquery_Click" /></div>
ǰ̨²éѯ°´Å¥µÄ´úÂëÈçÏ£º
<input id="Button2" type="button" value="²éѯ" onclick="query()" />
µ±µã»÷²éѯ°´Å¥Ê±£¬×ªµ½query()º¯Êý——JavaScript£º
 <script language="javascript" type="text/javascript">
    function query() {
            window.showModalDialog("Query/DeviceQuery.aspx",   window,   "dialogWidth:700px;dialogHeight:400px;status:no;help:no;scroll:no");
        }
    </script>
ÓÚÊǾÍתµ½ÉÏͼÖеÄDeviceQueryÒ³Ãæ¡£
°´Å¥“È·¶¨”µÄ´úÂëΪ£º
 protected void btnOK_Click(object sender, EventArgs e)
    {
        string swhere = get_where().Replace("'", "\'");
        Session["where"] = get_where();
        string script = "window.returnValue='true'; window.dialogArguments.__doPostBack('btnquery', '');";
        this.ClientScript.RegisterStartupScript(this.GetType(), "MPExecCommand", script, true);
        script = "window.close();";
        Common.ResponseScript(this.Page, script);
    }
×¢ÒâÆäÖеÄscript×ֶΣ¬ÀïÃæµÄ__doPostBack('btnQuery','')ÊÇ·µ»Øµ½Ò³ÃæµÄbtnquery°´Å¥£¬Ö´ÐÐËüµÄClickʼþ¡£


Ïà¹ØÎĵµ£º

javascript Ò³ÃæÌø×ªÓï¾ä

javascriptÒ³ÃæÌø×ª³£ÓôúÂë
 
¡¡   °´Å¥Ê½£º
¡¡¡¡<INPUT name="pclog" type="button" value="GO" onClick="location.href='http://www.163.com'">
       »òÕß
      <input type="button" value="ÖØÐ¹ºÂò" onclick="return goBack ......

javaScript¼òµ¥µÄ±í¸ñ±ß¿òÉÁ˸Ч¹û¡£

Ã²ËÆCSDNÀïµÄ¶¼ÊÇרҵÈËÊ¿£¬¸ßÊÖ¿ÉÒÔÂÓ¹ýÁË£¬ºÇºÇ¡£
Ò»ÏÂÊÇÔ´Â룺
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content ......

javaScript(&jQuery)¹¤¾ß¼°ÏàÓ¦ÍøÕ¾×ÊÁÏ

1.Dean Edwards±àдµÄPacker£¨http://dean.edwards.name/packer/£©£¬ÓÃÓÚѹËõJavaScript
2.»ñÈ¡JQuery£ºhttp:/jquery.com 
                     http://docs.jquery.com/Downloading_jQuery   ÏÂÔØ¸÷¸ö°æ±¾¼°ÏàÓ¦°ïÖúÎ ......

JavaScriptµÄwithÓï¾ä


withÓï¾ä
    ÓÃÓÚÉèÖôúÂëÌØ¶¨¶ÔÏóµÄ×÷ÓÃÓò¡£
    Àý£º
        var sMessage = "hello world";
        with(sMessage)
        {
         &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ