如何使用 jquery 将页面的 HTML 附加到 iframe

How to append HTML of a page to iframe using jquery

现在我有 html 个来自后端的页面代码。

所以我想知道如何使用 jquery 或 javascript 将这些附加到 iframe。

<iframe id="t-frame" ></iframe>

使用它:

$("#t-frame").attr("src","link website");