Note:
Please add the following Blue SectionCode, Save:X. php
Open the page to view alert content
<? PHP
If (isset ($ _ Get ['X']) {
Header ("Content-Type: text/XML ");
Die ('
<? XML version = "1.0" encoding = "UTF-8" ?>
< Data >
< PHP Email = "RunMan@QQ.com" >
< Name > Young [Kuafu] </ Name >
</ PHP >
< PHP Email = "Tutuyu23@163.com" >
< Name > Anson </ Name >
</ PHP >
< Java Email = "Xiayuanfeng1983@hotmail.com" >
< Name > Nicolas </ Name >
</ Java >
</ Data >
');
}
?>
< Html Xmlns = "Http://www.w3.org/1999/xhtml" >
< Head >
< Meta HTTP-equiv = "Content-Type" Content = "Text/html; charsets = UTF-8" />
< Script Type = "Text/JavaScript" SRC = "Jquery. js" > </ Script >
< Script Type = "Text/JavaScript" >
$ (Document). Ready ( Function (){
$. Post ( " X. php? X " , Function (XML ){
$ (XML). Find ( " PHP " ). Each ( Function (){
Alert ($ ( This ). Children ( " Name " ). Text ());
Alert ($ ( This ). ATTR ( " Email " ));
});
}
)
})
</ Script >
</ Head >
</ Html >