axios+post获取并下载后台返回的二进制流 let url = $.getCookie('prefixUrl')+'/expenseword/exportWords'; let vm = this; let len=vm.checkedIds.length; if(len){ Message('至少选择一条数据'); return false; } let ids = vm.checkedIds.join(','); let sessionId=$.getCookie('sessionId
在使用下面这个写法时候UTF-8文件编码 在读取时候出现乱码问题. File myFile=new File("文件路径"); BufferedReader in = new BufferedReader(new FileReader(myFile)); 应该修改为: BufferedReader in = new BufferedReader( new InputStreamReader( new FileInputStream(myFile), "UTF-8")