jquery |从其他url获取html

jquery |从其他url获取html,jquery,get,Jquery,Get,我想要得到html代码(解析它并将一些数据放入数据库),我有如下jquery代码: $(function() { $(document).on('click', '.run', function(e) { var link = 'http://www.nhl.com/ice/gamestats.htm?season=20122013&gameType=2&team=&viewName=summary'; $.get(link, fu

我想要得到html代码(解析它并将一些数据放入数据库),我有如下jquery代码:

$(function() {
    $(document).on('click', '.run', function(e) {
        var link = 'http://www.nhl.com/ice/gamestats.htm?season=20122013&gameType=2&team=&viewName=summary';
        $.get(link, function(data) {
            console.log("data: ");
            console.log(data);
        });
    });
});

但是在console.log中,我没有看到任何数据。。我做错了什么?谢谢

你想做什么?您想从“www.wp.pl”url获取一些Json数据吗?或者从上面的链接?您不是在服务器端而不是客户端(js)上执行吗?此错误:
XMLHttpRequest无法加载http://www.wp.pl/. 起源http://example.com 访问控制允许来源不允许使用。
nhl.com;)wp.pl仅用于测试。可能重复的