我已經(jīng)設(shè)法將 Google 日歷嵌入到 React 組件中,但問題是我可以觀察到嵌入的日歷沒有獲得添加到使用gapi.日歷 iframe 網(wǎng)址是這個(gè) https://calendar.google.com/calendar/b/1/embed?src={VALID_CALENDAR_EMAIL}日歷.util.jsconst CALENDAR_EMBED_BASE_URL = 'https://calendar.google.com/calendar/embed?src=';export const getCalendarEmbedUrl = email => `${CALENDAR_EMBED_BASE_URL}${email}`;CalendarIframe.jsx組件import React, { PureComponent } from 'react';import { getCalendarEmbedUrl } from 'calendar.util.js';class CalendarIframe extends PureComponent { render() { const { email } = this.props; const embedUrl = getCalendarEmbedUrl(email); return ( <div className="calendarEmbedWrapper"> <iframe title="Calendar" id="calendarEmbed" width="100%" src={embedUrl} /> </div> ); }}有什么方法可以確保嵌入式日歷與其應(yīng)有的一樣動(dòng)態(tài)?
日歷 iframe 不顯示所有最新創(chuàng)建的事件(尤其是共享日歷事件)
猛跑小豬
2021-09-17 16:34:28