一、转换pdf方式(推荐)
说明:该方式采用插件(Aspose.Words)将文件转化为pdf文件(需要转化到web服务器的下面),然后再使用浏览器自带的pdf查看器进行文件预览(缺点:只可用于word及pdf文件)。
前端调用代码
AttachMent.previewFile=function(obj,fileId){
var callback = function(data){
var dataObj = new com.ibms.form.ResultMessage
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Unknown+object+version.&type=Issues
If none exists, create a ticket, with the template displayed a