javascript - 2021 年使用的 IFrame 是什么?
问题描述
我偶然发现了一个使用 IFrame 与底层第三方系统通信的 API。我想知道这只是一个旧系统,我注意到除了 IFrame 之外,该系统还公开了一个结构良好的相对现代的 REST API。这让我想知道。他们使用 IFrame 而不是 REST API 有什么特别的优势吗?通过 IFrame 公开的功能是产品选择和价格检索。如果没有替代的 REST api 集,我会认为这是非常古老的东西,但现在在我看来它是一种有意的选择。
什么可能会在 2021 年激发这种选择?
解决方案
In the education world you have “Platforms” (Learning management systems like Blackboard or Moodle) that are developed to manage online courses.
But the course content maybe developed by separate developers / companies.
So iFrames are used to host 3rd party content within the platform frame.
推荐阅读
- c# - SQL 如何替换一个值
- python - 使用 python 和请求,如何进行正确的 POST 调用以及在哪里找到标头?
- android - FirebaseAppDistribution:appDistributionUpload gradle 命令中缺少应用程序 ID
- mysql - 跨列和行计算值的实例
- javascript - 使用 redux 钩子时使用 redux 操作的最佳选择是什么?
- sql - Impala 2.11:AnalysisException:选择列表中不支持子查询
- swift - 在 SwiftUI 中获取当前的经纬度
- c++ - 是否可以禁止一个类被动态转换为?
- git - Git - 将发布分支合并到主分支
- tensorflow - 任何想法如何解决激活函数的问题?