这是我的本地主机网址
localhost: 127.0.0.1:/8000/searches/?q=css
我尝试从我的 html 中删除名称属性。
<input type="text">
让我们假设这是代码:
<input type="text" name="q" value="">
现在
Request.POST/GET['q']
将“q”作为您的值的变量,从而无需从您的网址中删除“q=”。