特定搜索栏的代码 [英] Code for a Very specific Search Bar

查看:137
本文介绍了特定搜索栏的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个小的搜索栏,当您在其中输入单词时,将该单词添加到非常特定的网址代码中.

范例:搜寻框显示:danara

转到的网址是> http://example.com/tagged/danara

我不知道该怎么做,也不确定如何寻找答案.我一直在寻找约45分钟而没有停止.

我希望能够输入搜索框-而不是下拉列表.任何人都可以帮忙吗?

I want a small search bar that when you enter a word into it, adds that word to a very specific url code.

Example: Search box says: danara

Url it goes to is > http://example.com/tagged/danara

I don''t know how to do this and I''m not sure how to search for the answer; I''ve been looking for about 45 minutes now without stopping.

I want the search box to be able to be typed into--not a dropdown. Can anyone help?

推荐答案

您没有提到您使用的是哪种语言,但是在逻辑上这个问题是相同的:
1.从搜索框中获取文字
2.将该文本附加到常量URL
3.将URL发送到您的浏览器,外部或内部
You do not mention which language you are using but the issue is the same in logical terms:
1. get the text from the search box
2. append that text to the constant URL
3. send the URL to your browser, external or internal


这篇关于特定搜索栏的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆