小程序button去掉默认样式


1

// 在本地用户文件目录下创建一个文件 hello.txt,写入内容 "hello, world"
const fs = wx.getFileSystemManager()
fs.writeFileSync(`${wx.env.USER_DATA_PATH}/hello.txt`, 'hello, world', 'utf8')
// 写入图片
fsm.writeFile({
    filePath:`${wx.env.USER_DATA_PATH}/a.jpg`,
    data: buffer,
    encoding: 'binary',
    success() {
    // resolve(filePath);
    wx.getImageInfo({
        src: `${wx.env.USER_DATA_PATH}/a.jpg`,
        success: function (res) {
        console.log(res)
        resolve(res);
        },
    })

小程序API文档介绍


文章作者: Born to the sun
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Born to the sun !
评论