假设我有两个html页面。让我们假设foo.html
和bar.html
。foo.html
与链接两次bar.html
。一个来自图片,另一个来自文本内容。如果用户现在单击首页(foo.html
)上的两个链接之一,然后转到bar.html
,您可以在bar.html中找到该用户遵循的链接吗?
您可以在链接中添加查询字符串,例如
foo.html?picture
foo.html?text
然后window.location.search将包含'?picture'
或'?text'
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句