``关键部分代码
JS
//下载模板
$("#downloadmod").click(function (){
Common.showMask("请稍候......");
var id = $('#roomGrid').jqGrid('getGridParam','selrow');
$.ajax({
url : "download",
type : "post",
dataType : "json",
data :{
subBuildingInfoId: $('#roomGrid').jqGrid('getGridParam','selrow'),
buildingProjectId : $('#buildingProject').val()
},
success : function(json) {
Common.hideMask();
if (json.isSuccess) {
var url = "../common/download/"+ json.result.filePath + "/"+ encodeURI(encodeURI(json.result.fileName));
$("<iframe width=0px height=0px id='download' name='download' src='"+ url + "'></iframe>").prependTo('body');
Common.messageBox("提示", json.msg, true)