Skip to content

summer.openFile

xingyongchao edited this page Oct 25, 2016 · 1 revision

打开文件服务

语法

summer.openFile(json);

参数

json

filename

文件名 > 一般结合下载使用,filename值为下载时重新命名的filename

filetype

支持手机能打开的格式*.txt,.doc,.pdf等

filepath

文件路径 > 一般结合下载使用,filepath值为下载时提供的filepath

示例:

summer.openFile({ "filename" : "xxx.png", "filetype" : "png", "filepath" : "download/image" })

Clone this wiki locally