[英]How to get the content of iframe using jQuery or C#?
我不知道你的代碼。 但是如果你有一個帶有“ iframe ” id 的iframe ,試試這個;
var content = $('#iframe #message-box').html();
您的選擇器中沒有#
字符。 嘗試用這個替換你的代碼:
var content = $("#iframe").contents().find("#message-box").html(); // # added
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.