Ask if there is any performance difference between iframe and ajax on the partial switchover page. if so, is there a big gap? Which one has better performance? Ajax iframe performance
It has always been a simple business layer development. if the problem is too small, please forgive me.
ThinkPHP framework,
When there is such a page, click the button to switch the content in the box and use ajax to request a specified page in the background (use the smarty template to render the specified template file and return the html string filling ), is it highly efficient to directly access the corresponding action and Method (rendering the specified template file) using ifarme?
Reply to discussion (solution)
There is no difference in efficiency, but there is a difference in effectiveness
Iframe can be rendered at will
Pay attention to the effect of the appended style sheet on the whole of ajax.
It is better to fill the template with iframe directly, so that the interface can be controlled through html, and the server side reduces the trouble of designing the template.