我有以下代码:
<div class="container text-center">
<h1 class="display-3">What's the weather</h1>
<p class="lead"><strong>Enter the name of a city:</strong></p>
<form>
<input type="text" placeholder="E.g. Cape Town, London" name="city" id="city" class="form-control" value="">
<p class="lead">
<button type="submit" class="btn btn-primary btn-lg" id="button">Submit</button>
</p>
</form>
</div>每当我单击“提交”按钮时,我都会得到值,然后是"#“。我不知道它是从哪里来的。它显示在URL (即GET变量)中。我正在使用bootstrap。我怎样才能去掉"#"?
发布于 2017-06-20 03:29:59
usu method="“action="”。方法POST或GET
<form method="GET" action="">https://stackoverflow.com/questions/44638431
复制相似问题