From c6204714abc90f359499e96ac6e676bedb9d7fe5 Mon Sep 17 00:00:00 2001 From: jiajun-ifanr <68941049+jiajun-ifanr@users.noreply.github.com> Date: Mon, 18 Dec 2023 16:37:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=A7=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=B9=E6=B3=95=E5=8F=96=E5=80=BC=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js-sdk/file/file.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js-sdk/file/file.md b/js-sdk/file/file.md index ecf86a25..e95a86f0 100644 --- a/js-sdk/file/file.md +++ b/js-sdk/file/file.md @@ -177,7 +177,7 @@ f.addEventListener('change', function(e) { ```js my.chooseImage({ success: function(res) { - let MyFile = new wx.BaaS.File() + let MyFile = new my.BaaS.File() let fileParams = { filePath: res.apFilePaths[0], fileType: 'image', @@ -267,7 +267,7 @@ file 参数说明: ```javascript wx.chooseVideo({ success: function (res) { - let File = new app.BaaS.File() + let File = new wx.BaaS.File() let fileParams = { filePath: res.tempFilePath, fileSize: res.size } // 方式一,参数为文件分类名 let metaData = {categoryName: 'SDK'} @@ -304,7 +304,7 @@ f.addEventListener('change', function(e) { ```javascript my.chooseVideo({ success: function (res) { - let File = new app.BaaS.File() + let File = new my.BaaS.File() let fileParams = { filePath: res.tempFilePath, fileSize: res.size } // 方式一,参数为文件分类名 let metaData = {categoryName: 'SDK'}