lenlenya
3/22/2018 - 9:43 AM

window.showModalDialog模态窗返回数据

window.showModalDialog模态窗返回数据

<script type="text/javascript>  
        var jsonData = {};  
        jsonData.name = name;  
        jsonData.sex = sex;  
        jsonData.age = age;  
        jsonData.height = height;  
        jsonData.weight = weight;  
        //alert(jsonData);  
        window.returnValue = jsonData;  
        window.close();  
</script>