Home  >  Article  >  Backend Development  >  javascript - $.post和iframe

javascript - $.post和iframe

WBOY
WBOYOriginal
2016-08-04 09:20:501032browse

javascript - $.post和iframe

When the a tag is clicked, get the value of ssss, use the $.post method to access the CI controller, and the controller points to a view. $.post function(data){data is the complete code of a page (verified)}. I want to turn this data into a page and stuff it into an in HTML. Set the style yourself
Then the ajax request does not return the content of the html page but returns this content. Corresponding request address

$("#test").attr("src",json.url);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn