Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 是否有人可以帮助我在提交表单时为什么ShowDetail.html页面没有打开_Javascript_Jquery_Html_Css_Bootstrap 4 - Fatal编程技术网

Javascript 是否有人可以帮助我在提交表单时为什么ShowDetail.html页面没有打开

Javascript 是否有人可以帮助我在提交表单时为什么ShowDetail.html页面没有打开,javascript,jquery,html,css,bootstrap-4,Javascript,Jquery,Html,Css,Bootstrap 4,我不知道为什么这不起作用,当我提交代码时,shoDetail.html页面没有打开。我也尝试过输入完整的URL,但仍然不起作用。 我正在与您共享代码 <div class="form-group row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" > <button type="submit" style="margin-left: 70% " class ="btn btn-primary" cl

我不知道为什么这不起作用,当我提交代码时,shoDetail.html页面没有打开。我也尝试过输入完整的URL,但仍然不起作用。 我正在与您共享代码

<div class="form-group row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" >
<button  type="submit" style="margin-left: 70% " class ="btn btn-primary" class="form-control" formaction="showDetail.html">submit</button>
<button type="reset" class="btn" >cancel</button>
</div>
</div>
</form>
</body>

提交
取消
我试过在表单标签上设置队形,也试着在提交活动上调用showDetail。
当我检查代码时,控制台上没有显示错误。

添加此属性以代替“formaction”

<button onClick="location='./showDetail.html';">submit</button>
提交

我希望它能起作用:)

我试过在表单标签上使用formaction,但不起作用。你能在可以看到action属性的地方显示整个表单吗。值应该是shoDetail.html