Home  >  Article  >  Web Front-end  >  Introduction to three parameter passing methods of jquery mobile changepage_jquery

Introduction to three parameter passing methods of jquery mobile changepage_jquery

WBOY
WBOYOriginal
2016-05-16 17:22:36922browse

I originally thought that there are so many options in changePage, and it should be no problem to pass a few parameters. After searching domestic and foreign websites, there are only three basic methods

1. Explicit parameter passing, which means using the url address to bring the parameters, and then On the new page after changing page, use a function to split it, extract

2, and use global variables, which should be the so-called memory method. When changing page, simply make a variable to save the parameters, and then go to the new page Then extract

3 and use storage. localstorage and sessionstorage. The format is exactly the key-value format. First convert to characters, and then convert it into a json object when using it. To be honest, no matter where All methods are quite complicated.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn