0

私はAjaxjQueryを使用して、以下のようにデータをロードしています。

<div id=result></div>
  $.ajax({
    type: "POST",
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    url: "/co.aspx/getdata",
    success: function(r) {
      var dt = JSON.parse(r.d);
      var str='<a href='+ dt[i].Link+'>'+ dt[i].Name +'</a><br/>';
      $("#result").html(str);
    }
  }):

ただし、これらのリンクはサイトマップジェネレータによって生成されないため、Googleに表示されません。

どうすればSEOに適したものにすることができますか?

4

1 に答える 1

1

Follow the principles of Progressive Enhancement and Unobtrusive JavaScript.

  1. Build a website that works without JS
  2. Enhance it with JS
  3. Use the history API to update the address with the non-Ajax address for a page when you use Ajax to manipulate the view
于 2013-02-12T07:17:16.373 に答える