collection解釋:獲取數(shù)據(jù)庫集合的引用。 參數(shù)說明該方法傳入一個(gè)name參數(shù),參數(shù)類型為字符串類型,指定需引用的集合名稱。 屬性說明 方法 說明 collection.doc 獲取數(shù)據(jù)庫集合中記錄的引用 collection.get 根據(jù)查詢條件獲取集合數(shù)據(jù) ...
http://www.o2fo.com/baiduapp/baiduapp-1mh839w1.htmldoc解釋:數(shù)據(jù)庫修改指令 屬性說明 方法 說明 doc.get 獲取指定 ID 的記錄數(shù)據(jù) doc.update 更新指定記錄的數(shù)據(jù) doc.set 替換更新指定記錄的數(shù)據(jù) doc.remove 刪除指定 ID 的記錄
http://www.o2fo.com/baiduapp/baiduapp-talx39w2.htmldb.command 解釋:數(shù)據(jù)庫相關(guān)查詢及更新指令。 屬性說明 方法 說明 command.eq 查詢字段等于某個(gè)值 command.neq 查詢的字段不等于某個(gè)值 command.lt 查詢的字段小于某個(gè)值 command.lte 查詢的字段小于或等于某個(gè)值 command.gt 查詢的字段大于...
http://www.o2fo.com/baiduapp/baiduapp-g93i39w3.htmlcloud.init解釋:初始化云開發(fā) SDK參數(shù)說明名稱類型必須說明contextFunctionContext是函數(shù)執(zhí)行上下文optionObject否初始化參數(shù)option.envString/Object否云開發(fā)環(huán)境當(dāng)env傳入?yún)?shù)為對(duì)象時(shí),可以指定各個(gè)服務(wù)的默認(rèn)環(huán)境,字段如下:字段類型必...
http://www.o2fo.com/baiduapp/baiduapp-7d2v39w5.htmlCollection屬性說明 方法 說明 Collection.add 在對(duì)應(yīng)集合上新增文檔 Collection.count 獲取集合內(nèi)符合查詢條件的文檔數(shù)量 Collection.doc 獲取集合內(nèi)對(duì)應(yīng) ID 的文檔對(duì)象 Collection.field 指定獲取文檔數(shù)據(jù)返回字段結(jié)構(gòu) Collection.get 獲取集合內(nèi)符...
http://www.o2fo.com/baiduapp/baiduapp-1dur39w8.htmlcloud.uploadFile上傳文件到云存儲(chǔ)空間 參數(shù) 名稱 類型 必須 說明 option Object 是 option.cloudPath String 是 云存儲(chǔ)文件存儲(chǔ)路徑 option.fileContent Buffer/ReadableStream 是 文件內(nèi)容 option.contentType String 是 文件 Conetent-Type option.contentLength String 是 文...
http://www.o2fo.com/baiduapp/baiduapp-1s3u39wa.htmlcloud.downloadFile下載云存儲(chǔ)文件 參數(shù) 名稱 類型 必須 說明 option Object 是 option.fileID String 是 文件 ID 返回值 Promise resolve 參數(shù): 名稱 類型 說明 requestID String 請(qǐng)求 ID fileContent buffer 文件內(nèi)容 reject 參數(shù): 名稱 類型 說明 code String 錯(cuò)誤...
http://www.o2fo.com/baiduapp/baiduapp-ciwf39wb.htmlcloud.getTempFileURL獲取云存儲(chǔ)文件的臨時(shí)訪問連接,有效期 1 小時(shí) 參數(shù) 名稱 類型 必須 說明 option Object 是 option.fileID String 是 文件 ID 返回值 Promise resolve 結(jié)果: 名稱 類型 說明 requestID String 請(qǐng)求 ID tempFileURL String 文件臨時(shí)訪問連接 ...
http://www.o2fo.com/baiduapp/baiduapp-8wsj39wc.htmlcloud.deleteFile刪除云存儲(chǔ)文件,可以批量刪除,一次最多刪除 200 個(gè) 參數(shù) 名稱 類型 必須 說明 option Object 是 option.fileList String[] 是 待刪除文件 ID 列表 返回值 Promise resolve 結(jié)果: 名稱 類型 說明 requestID String 請(qǐng)求 ID fileList fileDeleteR...
http://www.o2fo.com/baiduapp/baiduapp-j1uf39wd.htmlcloud.callFunction調(diào)用云函數(shù)。 參數(shù) 名稱 類型 必須 說明 name String 是 云函數(shù)名 data Object 否 傳遞給云函數(shù)的參數(shù) 返回值 Promise resolve 結(jié)果: 名稱 類型 說明 requestID String 請(qǐng)求 ID result String 云函數(shù)返回結(jié)果 reject 結(jié)果: 名稱 類型 說...
http://www.o2fo.com/baiduapp/baiduapp-j37f39we.html抱歉,暫時(shí)沒有相關(guān)的微課
w3cschool 建議您:
抱歉,暫時(shí)沒有相關(guān)的視頻課程
w3cschool 建議您:
抱歉,暫時(shí)沒有相關(guān)的教程
w3cschool 建議您:
collection解釋:獲取數(shù)據(jù)庫集合的引用。 參數(shù)說明該方法傳入一個(gè)name參數(shù),參數(shù)類型為字符串類型,指定需引用的集合名稱。 屬性說明 方法 說明 collection.doc 獲取數(shù)據(jù)庫集合中記錄的引用 collection.get 根據(jù)查詢條件獲取集合數(shù)據(jù) ...
http://www.o2fo.com/baiduapp/baiduapp-1mh839w1.htmldoc解釋:數(shù)據(jù)庫修改指令 屬性說明 方法 說明 doc.get 獲取指定 ID 的記錄數(shù)據(jù) doc.update 更新指定記錄的數(shù)據(jù) doc.set 替換更新指定記錄的數(shù)據(jù) doc.remove 刪除指定 ID 的記錄
http://www.o2fo.com/baiduapp/baiduapp-talx39w2.htmldb.command 解釋:數(shù)據(jù)庫相關(guān)查詢及更新指令。 屬性說明 方法 說明 command.eq 查詢字段等于某個(gè)值 command.neq 查詢的字段不等于某個(gè)值 command.lt 查詢的字段小于某個(gè)值 command.lte 查詢的字段小于或等于某個(gè)值 command.gt 查詢的字段大于...
http://www.o2fo.com/baiduapp/baiduapp-g93i39w3.htmlcloud.init解釋:初始化云開發(fā) SDK參數(shù)說明名稱類型必須說明contextFunctionContext是函數(shù)執(zhí)行上下文optionObject否初始化參數(shù)option.envString/Object否云開發(fā)環(huán)境當(dāng)env傳入?yún)?shù)為對(duì)象時(shí),可以指定各個(gè)服務(wù)的默認(rèn)環(huán)境,字段如下:字段類型必...
http://www.o2fo.com/baiduapp/baiduapp-7d2v39w5.htmlCollection屬性說明 方法 說明 Collection.add 在對(duì)應(yīng)集合上新增文檔 Collection.count 獲取集合內(nèi)符合查詢條件的文檔數(shù)量 Collection.doc 獲取集合內(nèi)對(duì)應(yīng) ID 的文檔對(duì)象 Collection.field 指定獲取文檔數(shù)據(jù)返回字段結(jié)構(gòu) Collection.get 獲取集合內(nèi)符...
http://www.o2fo.com/baiduapp/baiduapp-1dur39w8.htmlcloud.uploadFile上傳文件到云存儲(chǔ)空間 參數(shù) 名稱 類型 必須 說明 option Object 是 option.cloudPath String 是 云存儲(chǔ)文件存儲(chǔ)路徑 option.fileContent Buffer/ReadableStream 是 文件內(nèi)容 option.contentType String 是 文件 Conetent-Type option.contentLength String 是 文...
http://www.o2fo.com/baiduapp/baiduapp-1s3u39wa.htmlcloud.downloadFile下載云存儲(chǔ)文件 參數(shù) 名稱 類型 必須 說明 option Object 是 option.fileID String 是 文件 ID 返回值 Promise resolve 參數(shù): 名稱 類型 說明 requestID String 請(qǐng)求 ID fileContent buffer 文件內(nèi)容 reject 參數(shù): 名稱 類型 說明 code String 錯(cuò)誤...
http://www.o2fo.com/baiduapp/baiduapp-ciwf39wb.htmlcloud.getTempFileURL獲取云存儲(chǔ)文件的臨時(shí)訪問連接,有效期 1 小時(shí) 參數(shù) 名稱 類型 必須 說明 option Object 是 option.fileID String 是 文件 ID 返回值 Promise resolve 結(jié)果: 名稱 類型 說明 requestID String 請(qǐng)求 ID tempFileURL String 文件臨時(shí)訪問連接 ...
http://www.o2fo.com/baiduapp/baiduapp-8wsj39wc.htmlcloud.deleteFile刪除云存儲(chǔ)文件,可以批量刪除,一次最多刪除 200 個(gè) 參數(shù) 名稱 類型 必須 說明 option Object 是 option.fileList String[] 是 待刪除文件 ID 列表 返回值 Promise resolve 結(jié)果: 名稱 類型 說明 requestID String 請(qǐng)求 ID fileList fileDeleteR...
http://www.o2fo.com/baiduapp/baiduapp-j1uf39wd.htmlcloud.callFunction調(diào)用云函數(shù)。 參數(shù) 名稱 類型 必須 說明 name String 是 云函數(shù)名 data Object 否 傳遞給云函數(shù)的參數(shù) 返回值 Promise resolve 結(jié)果: 名稱 類型 說明 requestID String 請(qǐng)求 ID result String 云函數(shù)返回結(jié)果 reject 結(jié)果: 名稱 類型 說...
http://www.o2fo.com/baiduapp/baiduapp-j37f39we.html抱歉,暫時(shí)沒有相關(guān)的文章
w3cschool 建議您: