$scope.openWin = function (fileUrl) { var url = configuration.previewUrl + encodeURIComponent(fileUrl); var winHeight = window.document.documentElement.clientHeight-10; $window.open(url, "_blank", "height=" + winHeight + ",top=80,left=80,toolbar=no, menubar=no, scrollbars=yes, resizable=yes"); };
var fileUrl =url1+"|"+"url2";//多文件使用“|”字符隔开 var url = "http://localhost:8012/picturesPreview?urls" + encodeURIComponent(fileUrl); var winHeight = window.document.documentElement.clientHeight-10; $window.open(url, "_blank", "height=" + winHeight + ",top=80,left=80,toolbar=no, menubar=no, scrollbars=yes, resizable=yes");
因为是测试所以一种文件只允许上传一个