見本
見本を参考にトライしてみましたが、何も表示されません。
どこが間違っているのでしょうか?
OS⇒windows 10 64bit ブラウザ⇒firefox 51.0.1
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>test</title> <!-- jQuery 読み込む --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- jquery.xdomainajax.js を読み込む --> <script src="jquery.xdomainajax.js"> </script> <script type="text/javascript"> url = 'http://www.yahoo.co.jp/'; function readHtml(url) { $.ajax({ type: 'GET', url: url, success: function(data) { $('#content').append(data.responseText); }, error: function(xhr, status, err) { alert('html_read_error' + url); } }); } </script> </head> <body> </body> </html>