What's the best way to transmit a variable from one page to another?

What's the best way to transmit a variable from one page to another?

Hello,
Could someone tell me the best way to transmit one variable from one page to another?
can we do it by:
$.mobile.changePage($("#P_Aliments"), {data: "id", value: "value"});
or by href="#link?id='value'"
or ...
and how can I retrieve this value the other side?

Thans for your help