2

私は画像ギャラリーのウェブサイトを運営しています。画像検索ページは、Google 画像検索のように機能します。スクロールすると、jquery を使用して次の結果が表示されます。ユーザーがページを更新した場合に同じ結果を表示する方法は?

ありがとう、シャム

4

2 に答える 2

1

クエリ文字列を使用してユーザー検索パラメーターを取得したり、検索テキスト フィールドを使用してページの更新時に結果を表示したりできます。

于 2012-08-08T13:51:23.990 に答える
0

Using query parameter will help only to show the page from the beginning after refresh, But what i would do is,

There are two options,

  1. Using cookies
  2. Using HTML5 local Storage or session storage

I prefer the second one, But in both way you can cache the current search data, therefore can be used later. This will help you to display different page of results, where the query parameter remains same.

于 2012-08-08T16:20:55.797 に答える