• AI
  • Front-End
    • API
    • PWA
  • Google
    • Analytics
    • Apps Script
    • Firebase
    • Forms
    • Sheets
    • Maps
    • Others
  • Bot
    • Telegram
    • LINE
    • Slack
  • Vue
  • WordPress
  • 所有筆記文
  • AI
  • Front-End
    • API
    • PWA
  • Google
    • Analytics
    • Apps Script
    • Firebase
    • Forms
    • Sheets
    • Maps
    • Others
  • Bot
    • Telegram
    • LINE
    • Slack
  • Vue
  • WordPress
  • 所有筆記文
Let's Write 2025

Let's Write

Tag:postMessage

postMessage:主頁、iframe 頁可互相傳值
  • August
  • 2019-10-18
  • Front-End

postMessage:主頁、iframe 頁可互相傳值

本篇大綱:前端的一個困擾 管不到 iframe。Google、Facebook 也是這樣傳值的。postMessage 基本使用、傳值、接值。原始碼、Demo。本篇筆記要記錄的就是 A、B 頁面 iframe 的情況下,A 傳給 B,或 B 傳給 A 的問題怎麼解決。

0

Widgets

Recent Comments

  • 「Ann」於〈Google 表單 用網址改變題目預設值〉發佈留言
  • 「FrankieYim」於〈iPhone 的語音辨識功能:語音備忘錄,自動標點分段〉發佈留言
  • 「Sunnine」於〈GitHub Copilot + Figma MCP Server 實戰:用 AI 快速切版教學〉發佈留言
  • 「oywoK」於〈CodiumAI PR-Agent,在 GitHub 上用 AI 來 Code Review〉發佈留言
  • 「MILK」於〈CodiumAI PR-Agent,在 GitLab 上用 AI 來 Code Review〉發佈留言

DMCA

DMCA.com Protection Status

Random Post

  • iPhone 的語音辨識功能:語音備忘錄,自動標點分段

    iPhone 的語音辨識功能:語音備忘錄,自動標點分段

  • 用 Performance API 檢測檔案讀取時間

    用 Performance API 檢測檔案讀取時間

  • Vue.js Transition 中用多個 v-if、v-show

    Vue.js Transition 中用多個 v-if、v-show

Social links

Subscribe

直接加入 Telegram 的頻道,有最新文章時會收到廣播通知:

© 2025 Let's Write. All Rights Reserved.

Recent Posts

  • 使用 Docker 搭配 Node.js 快速建置 Redis 快取系統
  • 用 Docker 快速架設 Node.js 靜態網站服務
  • Windows 上,本機用 Docker 安裝 GitLab
  • iPhone 的語音辨識功能:語音備忘錄,自動標點分段
  • GitHub Copilot + Figma MCP Server 實戰:用 AI 快速切版教學