Home > Article > Web Front-end > jQuery's method of obtaining the document object of an iframe_jquery
The purpose of obtaining the document object of the iframe is to perform dom operations
$(function() { var result = $('#myframe').prop('contentWindow').document; console.log(result); });
The output result is: document object