How to pass values from one page to another in jQuery

前端 未结 3 1112
萌比男神i
萌比男神i 2020-11-28 13:56

I have two pages of jQuery, Page1 and Page2, and I\'m able to get input in Page1.

The somval=1000$.

The page 1 user enters the somevalue. I have

3条回答
  •  离开以前
    2020-11-28 14:43

    The problem isn't specific to jQuery (ie. it probably haven't a specific solution, unless I am mistaken), but to any Web page.
    Gerald gave the URL query string solution, the other classical solution, if you want to be independent of a server, is to use cookies, they are made for that!
    Using a server, you have session data, hidden fields, Ajax save and restore, etc.

提交回复
热议问题