Home > Backend Development > PHP Tutorial > How does WeChat's built-in browser know whether it is opened from Moments or a chat window?

How does WeChat's built-in browser know whether it is opened from Moments or a chat window?

WBOY
Release: 2016-08-18 09:16:11
Original
1356 people have browsed it

The same link
1. Send the link as content to Moments,
2. Send the link to the chat window.
How to know which side clicked the link, and distinguish whether it is the Moments or the chat window

Reply content:

The same link
1. Send the link as content to Moments,
2. Send the link to the chat window.
How to know which side clicked the link, and distinguish whether it is the Moments or the chat window

You can set the shared page to have different parameters when being shared to distinguish it.

After testing, it was found that clicking on the circle of friends will bring parameters
$url?from=timeline&isappinstalled=0

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template