Check the local switch page, the use of IFRAME and Ajax there is no performance difference, if so, the gap is big? Which performance is better
Source: Internet
Author: User
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?
------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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.