0

このリンクを参照しましたが、うまくいきませんでした。アドレス バーで次のリンクを使用すると、ブラウザーに json データが表示されます。

http://xxxx.xxx.com:1234/products.json // サンプルリンクのみ

しかし、次のコードを試すと、

 $.ajax({

                url : 'http://xxxx.xxx.com:1234/products.json',

                dataType: 'json',
                async: false,
                success: function(data) {

                alert( "test" ); 


                },
                error : function() {
                    alert("Sorry, The requested property could not be found.");
                }
            });

常にエラーメッセージが表示されます。私の方法で何が間違っていますか?

4

0 に答える 0