使用Modal Dialog应用模式的注意事项
| 现有window open的方式 | 应用Modal Dialog后的方式 | |
| 一般写法 | window.open('url','target','feature') | window.showModalDialog('url',window,'feature') | 
| 建议写法实例(已经在main.js里封装好了) | OW('$customerModule.setTarget("addCustomer.vm")','addCustomer','yes'); | OW('$customerModule.setTarget("addCustomer.vm")','modal'); | 
| 取得父窗口的对象 | opener | dialogArguments | 
| 实例 | window.opener.childsubmit(); | dialogArguments.childsubmit(); | 
| 注意事项 | 1、ModalDialog里再弹开窗口,不能用open,一定要用showModalDialog 3、ModalDialog会缓存内容,所以建议在ModalDialog装载的页面<head>和</head>之间加入缓存控制: | 
 
                    
                 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号