Google 课堂插件现已面向开发者正式推出!如需了解详情,请参阅
插件文档。
链接升级 iframe
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
“链接升级”iframe 是教师同意将链接附件升级为插件附件时看到的视图。如需详细了解此功能,请参阅有关将链接升级为插件附件的指南。
关联升级流程
在作业创建页面中,教师可以在“添加链接”对话框中添加链接。

图 1. 作业创建页面上显示的对话框,供教师创建链接附件。
如果链接与您提供的网址格式匹配,教师会看到一个对话框,提示他们将链接升级为插件附件。如果用户同意,系统会打开包含相关 iframe 查询参数的“关联升级”iframe。附件创建完毕后,iframe 会关闭,并且教师会在作业创建页面上看到附件。
如需详细了解此流程中的用户体验注意事项,请参阅关于将链接升级为插件附件的指南的“推荐的用户体验”部分。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Link Upgrade iframe\n\nThe **Link Upgrade iframe** is the view that teachers see when they agree to\nupgrade a Link attachment to an add-on attachment. For additional details about\nthis feature, see the guide on [upgrading links to add-on attachments](/workspace/classroom/add-ons/developer-guides/upgrade-links-to-addons).\n\nLink Upgrade flow\n-----------------\n\nFrom the assignment creation page, the teacher can include a link in the Add\nlink dialog.\n\n**Figure 1.** The dialog that's displayed on the assignment creation page for a\nteacher to create a [Link attachment](/workspace/classroom/reference/rest/v1/Link).\n\nIf the Link matches a [URL pattern](/workspace/classroom/add-ons/developer-guides/upgrade-links-to-addons#configuration_details) that you have provided, the teacher sees a\ndialog that prompts them to upgrade the Link to an add-on attachment. If they\nagree, the Link Upgrade iframe opens with the relevant [iframe query\nparameters](/workspace/classroom/add-ons/developer-guides/iframes). Once the attachment has been created, the iframe closes and the\nteacher sees the attachment included on the assignment creation page.\n\nSee the [Recommended user experience section](/workspace/classroom/add-ons/developer-guides/upgrade-links-to-addons#recommended_user_experience) of the guide on upgrading links to\nadd-on attachments for details on user experience considerations in this flow."]]