Ajax IFRAME Performance
has always been a simple business layer of development, if the problem is too small white also please forgive
thinkphp Frame,
There is a page where you can click the button to toggle the contents of the box, use AJAX to request a specified page (using the Smarty template to render the specified template file, return the HTML string fill), and use Ifarme to directly access the corresponding action and method (render the specified template file ), is there a difference in efficiency, big differences?
Reply to discussion (solution)
There is no difference in efficiency, but the difference of effect
IFrame can be rendered arbitrarily
Ajax needs to be aware of the impact of additional style sheets on the whole
It is better to fill the template directly with an IFRAME so that the interface can be controlled by HTML, and the service side reduces the hassle of designing the template.