dialog如何向其href指定的頁面傳遞引數?

IT_10發表於2018-11-28
	//A頁面開啟的dialog
  uploadFile:function (title) {
  	var param=100;
        $("#InfoAnalysisAnalysis-dialog").dialog({
            title: title,
            width:750,
            height:400,
            modal: true,
            queryParams:{submitURL:param},  //傳遞引數
            href: "../html/integratedServices/patentInfoAnalysis/patInfoAnaFile.html"
        });
        $("#InfoAnalysisAnalysis-dialog").dialog("open"); // 開啟dialog
        $('#InfoAnalysisAnalysis-dialog').window('center');
    }
	//href指定的patInfoAnaFile.html頁面
	var obj=$("#InfoAnalysisAnalysis-dialog").dialog('options'); //獲取開啟的dialog物件
    var submitURL=obj["queryParams"]["submitURL"]; //獲取傳遞的引數
    console.log(submitURL);

相關文章