If js needs to cross domain, you can use: In this way, data can be read from other websites. <br>The key is to see if you are flexible and can use it. <br>If ajax needs to be cross-domain, you can use a server to fetch content from other websites, such as asp.net: <br></p> <div class="codetitle"> <span><a style="CURSOR: pointer" data="59490" class="copybut" id="copybut59490" onclick="doCopy('code59490')"><u>Copy code</u></a></span> The code is as follows: </div> <div class="codebody" id="code59490"> <br>public string GetUrlData(string url) <br>{ <br>System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url ); <br>System.Net.WebResponse webResponse = webRequest.GetResponse(); <br>System.IO.Stream iStream = webResponse.GetResponseStream(); <br>System.IO.StreamReader sr = new System.IO.StreamReader (iStream, System.Text.Encoding.Default); <br>string str = sr.ReadToEnd(); <br>sr.Close(); <br>iStream.Close(); <br>webResponse.Close() ; <br>return str; <br>} <br> </div> <br>This method has been written. You only need to pass in the url address of the website to get the ajax return value you want. <br>In this way, the ajax request of other websites is written to your own server, and then you can use ajax to request the <br>aspx address that you have written. <br>If it is java, the same is true, such as: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="51204" class="copybut" id="copybut51204" onclick="doCopy('code51204')"><u>Copy code </u></a></span> The code is as follows: </div> <div class="codebody" id="code51204"> <br>URL url = new URL("http://www.jb51.net/index.html"); <br>FilterInputStream f=(FilterInputStream)url.openStream(); <br> </div> <br>Of course The principle of asp and php is the same, that is, using the thief function to obtain content.