The effect of ajax page turning imitates how to realize the yii framework
This article mainly introduces the ajax page turning effect to imitate the yii framework how to achieve, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Ajax paging function loadXMLDoc ($url) {var xmlhttp; if (window.XMLHttpRequest) {/ / code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest ();} else {/ / code for IE6, IE5 xmlhttp=new ActiveXObject ("Microsoft.XMLHTTP");} xmlhttp.onreadystatechange=function () {if (xmlhttp.readyState==4 & & xmlhttp.status==200) {var $data = $(''+ xmlhttp.responseText +'); / / alert ($("# updateId", $data). Html ()) / / document.getElementById ("myDiv") [xss_clean] = xmlhttp.responseText; $("# updateId"). ReplaceWith ($("# updateId", $data);}} xmlhttp.open ("GET", $url,true); xmlhttp.send () } id title time 2222222 2222222 1111111 1111111 2 Thank you for reading this article carefully. I hope the article "ajax page turning effect imitating how to achieve the yii framework" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!