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

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

目標(biāo)只點(diǎn)擊錨而不是兄弟

目標(biāo)只點(diǎn)擊錨而不是兄弟

守候你守候我 2021-12-02 16:33:14
我需要在兩個(gè)不同的集合上觸發(fā)我的函數(shù)。這該怎么做?我有這樣的東西,但第二個(gè)函數(shù)首先覆蓋,第一個(gè)不起作用。這該怎么做?'使用嚴(yán)格'; const functions = require('firebase-functions');const admin = require('firebase-admin');admin.initializeApp(functions.config().firebase); const 數(shù)據(jù)庫(kù) = admin.database();exports.apptTrigger = functions.firestore    .document('notification/{anydocument}' )    .onCreate((snap, context) => {    const title = snap.data().title;    const messageis = snap.data().content;    const postId = snap.data().idPost;    const payLoad = {        notification:{            title: title,            body: messageis,            sound: "default"        }    };        return admin.messaging().sendToTopic("notification", payLoad);});exports.apptTrigger = functions.firestore    .document('notificationP/{anydocument}')    .onCreate((snap, context) => {    const title = snap.data().title;    const messageis = snap.data().content;    const postId = snap.data().idPost;    const payLoad = {        notification:{            title: title,            body: messageis,            sound: "default"        }    };        return admin.messaging().sendToTopic("notification", payLoad);});```
查看完整描述

2 回答

?
嗶嗶one

TA貢獻(xiàn)1854條經(jīng)驗(yàn) 獲得超8個(gè)贊

$('.toggle-text').text('Less Info')

上面的行將選擇您的所有.toggle-text元素。如果.toggle-text是您的子元素,.container-outer您可以執(zhí)行以下操作:


$('.container-outer.active').find('.toggle-text').text('Less Info');

$('.container-outer:not(.active)').find('.toggle-text').text('More Info');

它應(yīng)該工作。


查看完整回答
反對(duì) 回復(fù) 2021-12-02
?
撒科打諢

TA貢獻(xiàn)1934條經(jīng)驗(yàn) 獲得超2個(gè)贊

這是你想要的嗎 ?


$('.more-info').on('click', function() {

  $(".more-info").removeClass("active").html("More Info");

  $(this).addClass("active").html("Less Info");

});

a{

display:block;

padding:10px;

background:#f5f5f5;

margin:10px;

}

.active{

  color:red;

{

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>


<a class="more-info">More Info</a>

<a class="more-info">More Info</a>

<a class="more-info">More Info</a>

<a class="more-info">More Info</a>


查看完整回答
反對(duì) 回復(fù) 2021-12-02
  • 2 回答
  • 0 關(guān)注
  • 169 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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