Ask about the local switch page, the use of IFRAME and Ajax there is no performance difference, if there is a big gap? Which performance is better?
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?
Ajax iframe Performance
share to: more
------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
------Solution--------------------
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.