uploadFile將本地資源上傳至云存儲空間,如果上傳至同一路徑則是覆蓋。請求參數(shù)字段說明數(shù)據(jù)類型默認值必填cloudPath云存儲路徑String-YfileContent要上傳文件的內(nèi)容fs.ReadStream-YPromise返回結(jié)果說明字段說明數(shù)據(jù)類型fileID文件 IDStringsta...
http://m.o2fo.com/weixinapp/weixinapp-uwve2zhx.htmldownloadFile從云存儲空間下載文件請求參數(shù)字段說明數(shù)據(jù)類型默認值必填fileID云文件 IDString-YPromise 返回參數(shù)字段說明數(shù)據(jù)類型fileContent文件內(nèi)容BufferstatusCode服務器返回的 HTTP 狀態(tài)碼Number錯誤返回參數(shù)字段說明數(shù)據(jù)類型errCode錯誤碼N...
http://m.o2fo.com/weixinapp/weixinapp-std32zhy.htmlgetTempFileURL用云文件 ID 換取真實鏈接,可自定義有效期,默認一天且最大不超過一天請求參數(shù)字段說明數(shù)據(jù)類型默認值必填fileList要換取臨時鏈接的云文件 ID 列表String[]-YfileList 數(shù)組中的每一個元素是一個云文件 fileIDPromise 返回...
http://m.o2fo.com/weixinapp/weixinapp-v2xd2zhz.htmldeleteFile從云存儲空間刪除文件請求參數(shù)字段說明數(shù)據(jù)類型默認值必填fileList云文件 ID 字符串數(shù)組String[]-YPromise 返回參數(shù)字段說明數(shù)據(jù)類型fileList刪除結(jié)果列表,列表中的每一個對象的定義見下表Object[]fileList 列表中的對象說明字...
http://m.o2fo.com/weixinapp/weixinapp-6nd32zi0.html文本。 屬性名 類型 默認值 說明 最低版本 selectable Boolean false 是否可以選中文字 1.0.0 space String false 是否顯示連續(xù)的空格,可以取值ensp emsp nbsp 1.0.0 decode Boolean false 是否轉(zhuǎn)義 1.0.0 除了文本組件以外的其他組件內(nèi)的文字都無法長...
http://m.o2fo.com/microapp/microapp-fa3j33mt.html富文本。 屬性名 類型 默認值 說明 最低版本 nodes Array/String [ ] 節(jié)點列表 / HTML String 1.0.0 WARNING nodes 屬性推薦使用 Array 類型,由于組件會將 String 類型轉(zhuǎn)換為 Array 類型,因而性能會有所下降 示例 開發(fā)者工具中預覽 <rich-text nodes...
http://m.o2fo.com/microapp/microapp-ikwv33my.html進度條。 屬性名 類型 默認值 說明 最低版本 percent Number 0 進度 1.0.0 stroke-width Number 6 進度條的垂直寬度 1.0.0 color String #F85959 進度條顏色,不建議使用,請使用active-color 1.0.0 active-color String #F85959 進度條顏色 1.0.0 background-color Strin...
http://m.o2fo.com/microapp/microapp-uatl33mz.html視頻組件。 屬性名 類型 默認值 說明 最低版本 src String 要播放的視頻資源地址 1.0.0 autoplay Boolean false 是否自動播放 1.0.0 poster String 封面圖地址,網(wǎng)絡地址 1.0.0 bindplay String play事件的handler 1.0.0 bindpause String pause事件的handler 1.0.0 bi...
http://m.o2fo.com/microapp/microapp-hmev33v6.html畫布。 屬性名 類型 默認值 說明 cavas-id String canvas組件的標識,必須設置該屬性 canvas組件的默認寬度為300px,高度為225px 示例 開發(fā)者工具中預覽 <canvas canvas-id="canvas" class="canvas"></canvas> Page({ onShow: function (res) { this.position...
http://m.o2fo.com/microapp/microapp-t25n33va.html獲取小程序啟動時的參數(shù)。其值與App.onLaunch方法傳入的參數(shù)一致。不會隨著小程序使用而發(fā)生變化。 提示 這是一個同步方法。 輸入 無輸入 輸出 名稱 數(shù)據(jù)類型 描述 path String 小程序啟動頁面路徑 scene String 小程序啟動場景值 que...
http://m.o2fo.com/microapp/microapp-ebm633vh.html抱歉,暫時沒有相關(guān)的微課
w3cschool 建議您:
抱歉,暫時沒有相關(guān)的視頻課程
w3cschool 建議您:
抱歉,暫時沒有相關(guān)的教程
w3cschool 建議您:
uploadFile將本地資源上傳至云存儲空間,如果上傳至同一路徑則是覆蓋。請求參數(shù)字段說明數(shù)據(jù)類型默認值必填cloudPath云存儲路徑String-YfileContent要上傳文件的內(nèi)容fs.ReadStream-YPromise返回結(jié)果說明字段說明數(shù)據(jù)類型fileID文件 IDStringsta...
http://m.o2fo.com/weixinapp/weixinapp-uwve2zhx.htmldownloadFile從云存儲空間下載文件請求參數(shù)字段說明數(shù)據(jù)類型默認值必填fileID云文件 IDString-YPromise 返回參數(shù)字段說明數(shù)據(jù)類型fileContent文件內(nèi)容BufferstatusCode服務器返回的 HTTP 狀態(tài)碼Number錯誤返回參數(shù)字段說明數(shù)據(jù)類型errCode錯誤碼N...
http://m.o2fo.com/weixinapp/weixinapp-std32zhy.htmlgetTempFileURL用云文件 ID 換取真實鏈接,可自定義有效期,默認一天且最大不超過一天請求參數(shù)字段說明數(shù)據(jù)類型默認值必填fileList要換取臨時鏈接的云文件 ID 列表String[]-YfileList 數(shù)組中的每一個元素是一個云文件 fileIDPromise 返回...
http://m.o2fo.com/weixinapp/weixinapp-v2xd2zhz.htmldeleteFile從云存儲空間刪除文件請求參數(shù)字段說明數(shù)據(jù)類型默認值必填fileList云文件 ID 字符串數(shù)組String[]-YPromise 返回參數(shù)字段說明數(shù)據(jù)類型fileList刪除結(jié)果列表,列表中的每一個對象的定義見下表Object[]fileList 列表中的對象說明字...
http://m.o2fo.com/weixinapp/weixinapp-6nd32zi0.html文本。 屬性名 類型 默認值 說明 最低版本 selectable Boolean false 是否可以選中文字 1.0.0 space String false 是否顯示連續(xù)的空格,可以取值ensp emsp nbsp 1.0.0 decode Boolean false 是否轉(zhuǎn)義 1.0.0 除了文本組件以外的其他組件內(nèi)的文字都無法長...
http://m.o2fo.com/microapp/microapp-fa3j33mt.html富文本。 屬性名 類型 默認值 說明 最低版本 nodes Array/String [ ] 節(jié)點列表 / HTML String 1.0.0 WARNING nodes 屬性推薦使用 Array 類型,由于組件會將 String 類型轉(zhuǎn)換為 Array 類型,因而性能會有所下降 示例 開發(fā)者工具中預覽 <rich-text nodes...
http://m.o2fo.com/microapp/microapp-ikwv33my.html進度條。 屬性名 類型 默認值 說明 最低版本 percent Number 0 進度 1.0.0 stroke-width Number 6 進度條的垂直寬度 1.0.0 color String #F85959 進度條顏色,不建議使用,請使用active-color 1.0.0 active-color String #F85959 進度條顏色 1.0.0 background-color Strin...
http://m.o2fo.com/microapp/microapp-uatl33mz.html視頻組件。 屬性名 類型 默認值 說明 最低版本 src String 要播放的視頻資源地址 1.0.0 autoplay Boolean false 是否自動播放 1.0.0 poster String 封面圖地址,網(wǎng)絡地址 1.0.0 bindplay String play事件的handler 1.0.0 bindpause String pause事件的handler 1.0.0 bi...
http://m.o2fo.com/microapp/microapp-hmev33v6.html畫布。 屬性名 類型 默認值 說明 cavas-id String canvas組件的標識,必須設置該屬性 canvas組件的默認寬度為300px,高度為225px 示例 開發(fā)者工具中預覽 <canvas canvas-id="canvas" class="canvas"></canvas> Page({ onShow: function (res) { this.position...
http://m.o2fo.com/microapp/microapp-t25n33va.html獲取小程序啟動時的參數(shù)。其值與App.onLaunch方法傳入的參數(shù)一致。不會隨著小程序使用而發(fā)生變化。 提示 這是一個同步方法。 輸入 無輸入 輸出 名稱 數(shù)據(jù)類型 描述 path String 小程序啟動頁面路徑 scene String 小程序啟動場景值 que...
http://m.o2fo.com/microapp/microapp-ebm633vh.html抱歉,暫時沒有相關(guān)的文章
w3cschool 建議您: