智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/ae/aef6529dde527e4e0826842097a...

23 lines
481 B

import {
getRealPath
} from '../util'
import {
invoke
} from '../../bridge'
export function openDocument ({
filePath,
fileType
} = {}, callbackId) {
plus.io.resolveLocalFileSystemURL(getRealPath(filePath), entry => {
plus.runtime.openFile(getRealPath(filePath))
invoke(callbackId, {
errMsg: 'openDocument:ok'
})
}, err => {
invoke(callbackId, {
errMsg: 'openDocument:fail 文件[' + filePath + ']读取失败:' + err.message
})
})
}