解决方案 »

  1.   

    show_window({
        "url": "xxxxx"
        "typeL": "xxxxxxx"
        "show_content": "xxxxxxxx"
    })
      

  2.   


    obj = new Object();
    obj.url = "111";
    obj.typeL = "222";
    obj.show_content = "333";
    show_window(obj);
    function show_window(a) {
        var url = a.url;                  
        var typeL = a.typeL;               
        var show_content = a.show_content;  
    }
      

  3.   

    是不是写反了
    function show_window(a) {
         a.url = url;                  
         a.typeL = typeL;               
         a.show_content = show_content;  
    }
      

  4.   

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title></title>
       <script type="text/javascript">
                  function show_window(a) {
               var url = a.url;
               var typeL = a.typeL;
               var show_content = a.show_content;           //弹出
               alert(url);
               alert(typeL);
               alert(show_content);
           }       function t()
           {
               var a = {
                   url: "aaaa",
                   typeL: "bbb",
                   show_content: "ccc"
               }           show_window(a);
           }
       </script>
    </head>
    <body onload="t()"></body>
    </html>