search

Home  >  Q&A  >  body text

javascript - 点击表单按钮url后跟name及值的问题解决

如何去掉默认的地址栏?后的参数及赋值

<form id="form1">

    <input id=""  type="text" name="city" placeholder="" value="" />
    <input id="" type="text"  name="price" placeholder="" value="" />
    <button id="" class="btn-ok">查询</button>

</form>

PHP中文网PHP中文网2781 days ago571

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-11 12:21:34

    <form id="form1" method="post">

    reply
    0
  • Cancelreply