第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

如何看懂a(chǎn)pi文檔?

如何看懂a(chǎn)pi文檔?

犯罪嫌疑人X 2018-08-09 10:09:56
有沒(méi)有相關(guān)的課程可以學(xué)習(xí),經(jīng)??碼pi文檔看的理解不對(duì),尤其是那些缺少實(shí)例代碼的。例如下面這一段http://docs.meteor.com/api/pubsub.html#Meteor-subscribeMeteor.subscribe(name, [arg1, arg2...], [callbacks])import { Meteor } from 'meteor/meteor' (ddp-client/livedata_connection.js, line 521)Subscribe to a record set. Returns a handle that provides stop() and ready() methods.ARGUMENTSname StringName of the subscription. Matches the name of the server's publish() call.arg1, arg2... EJSON-able ObjectOptional arguments passed to publisher function on server.callbacks Function or ObjectOptional. May include onStop and onReady callbacks. If there is an error, it is passed as an argument to onStop. If a function is passed instead of an object, it is interpreted as an onReady callback.實(shí)際使用callbacks的寫(xiě)法應(yīng)該是Meteor.subscribe("name",{ onReady:function(){//代碼}}但是從文中的描述來(lái)看我根本想不到實(shí)際的寫(xiě)法應(yīng)該是這樣,不知道應(yīng)該怎么理解。有沒(méi)有系統(tǒng)的學(xué)習(xí)看api文檔的教程?求教!
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 1739 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)