zoukankan      html  css  js  c++  java
  • javascript 实现页面间传值

    $,是指prototype定义的一类方法

    $("id")  得到的是页面id为"id"的元素
    $F("id") 得到的是页面id为"id"的元素的值,这是只读的,不可写

    1. var str = window.showModalDialog(url, window, "dialogHeight: " + h + "; dialogWidth: " + w + ";

                                                           dialogTop: 200px; dialogLeft: 250px; edge: Raised; center: Yes;

                                                           help: Yes; resizable: Yes; status: no;scroll:no");
              
                if (str != 'no' && str != null)

               {
                    var strs=str.split("+");
                  
                    document.all.<%=txtCUSTOMERSNO.ClientID%>.value=strs[0];
                    document.all.<%=txtCUSTOMERSNAME.ClientID%>.value=strs[1];;
                   
                    $("#<%=txtCUSTOMERSLEVEL.ClientID%>").val(strs[2]);
                   
                   
                    document.all.<%=txtCUSTOMERSADDRESS.ClientID%>.value=strs[3];;
                }

    2. window.returnValue=var1;

         window.Close();

  • 相关阅读:
    清北学堂 清北-Day1-R1-Count
    清北学堂 清北-Day1-R2-监听monitor
    LuoGu P2420 让我们异或吧
    Milk(sort+结构体)
    开门人和关门人(结构体+sort)
    python-神奇的下划线
    python-pathlib
    python-文本字符串
    python-闭包
    进制-Iterative-进制转换
  • 原文地址:https://www.cnblogs.com/fhuafeng/p/2163667.html
Copyright © 2011-2022 走看看