There is a need for the page to determine the different open way to the innermost link to make different adjustments,
This will be divided into four scenarios, app, browser x Android, Apple system, At first, the page URL address with the parameters (Android) and the user agent (Apple) return value to Judge Navigator.useragent, but found that only the first page URL with a special parameter character, so, then used another method of cookies, The default cookie is automatically invalidated when the browser is closed.
Cookie settings document.cookie= "userid=828"; Constant setting will automatically overlay.
If you want to store more than one name/value pair at a time, you can use a semicolon plus a space (; Separated
Reference Address: http://www.jb51.net/article/14566.htm
Determine if NetEase is the app open or the browser opens. Cookies