2015-10-19 76 views

回答

2

你只需要填充“Q” URL参数,如

<a href="https://www.google.com/search?q=photography" target="_blank">Photography</a> 

或者,如果你想返回专门例如图像搜索,然后通过“TBM” URL参数,如

<a href="https://www.google.com/search?q=photography&tbm=isch" target="_blank">Photography</a> 
+0

谢谢。在手动搜索具有其他参数的URL并且采用以下格式时:“https://www.google.com/?gfe_rd = cr&ei = db4kVpm8Oe_I8AeAlZXQCg&gws_rd = ssl,cr&fg = 1#q = photography”。我们不需要关心其他参数吗? –

+1

您不需要**其他参数 - 但您可能需要它们,具体取决于您是否希望格式化和/或过滤结果。这个现有的问题包含一些有关Google搜索查询URL参数的有用讨论:http://stackoverflow.com/questions/2401115/meaning-of-parameters-in-a-google-query –

相关问题