var url = 'http://127.0.0.1:8080/file/test.txt'; //要预览文件的访问地址 window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(url));
var fileUrl =url1+"|"+"url2";//多文件使用“|”字符隔开 window.open('http://127.0.0.1:8012/picturesPreview?urls='+encodeURIComponent(fileUrl));
因为是测试所以一种文件只允许上传一个