fileSystemPlugin.writeFile()
PluginfileSystemPluginwriteFile小于 1 分钟
写入内容
import { fileSystemPlugin } from "@plaoc/plugins";
fileSystemPlugin.writeFile(options)
参数
- options
写入文件的选项参数;
参数值是WriteFileOptions对象;
返回值
返回一个Promise,resolve兑现一个WriteFileResult对象;
示例
import { fileSystemPlugin } from "@plaoc/plugins";
const path = "xxx"
const data = "内容"
fileSystemPlugin.writeFile({
path, data
})
平台兼容性
属性/方法/事件 | Android | IOS | Desktop-Dev | Desktop |
---|---|---|---|---|
writeFile | ✅ | ✅ | ✅ | X |
相关链接
Powered by Waline v2.15.7