zoukankan      html  css  js  c++  java
  • 前端通过form表单构造带参数url

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Title</title>
    </head>
    <body>
    <form>

    <div class="col-lg-3">
    source
    <select name="source"> <option value="">---------</option> <option value="0">Baidu商桥</option> <option value="1">51CTO</option> <option value="2">QQ群</option> <option value="3">知乎</option> <option value="4">SOGO</option> <option value="5">转介绍</option> <option value="6">其他</option> </select>
    </div>
    <div class="col-lg-3">
    status
    <select name="status"> <option value="">---------</option> <option value="0">已报名</option> <option value="1">未报名</option> <option value="2">已退学</option> </select>
    </div>
    <div class="col-lg-3">
    consultant
    <select name="consultant"> <option value="">---------</option> <option value="1">root</option> </select>
    </div>
    <div class="col-lg-3">
    date
    <select name="date"> <option value="2018-05-23">今天</option> <option value="2018-05-22">昨天</option> <option value="2018-05-16">近7天</option> <option value="2018-05-16">近30天</option> </select>
    </div>
    <input type="submit" class="btn btn-success" value="过滤">
    </form>
    </body>
    </html>


    1、form表单没有定义method方法,默认为get
    2、该页面,点击过滤按钮,提交表单,url变为:
    页面的url/?source=&status=&consultant=&date__lt=2018-05-22
  • 相关阅读:
    solr部署长命版后继
    reiserfs相关
    sqlite in python
    查看文件系统
    https://wiki.fourkitchens.com/dashboard.action这个技术wiki不错
    gvim菜单显示问题
    linux tips
    solr部署一气呵成版,让你多活两天
    挺好玩的C语句
    hardy ubuntu source list
  • 原文地址:https://www.cnblogs.com/yoyo008/p/9076076.html
Copyright © 2011-2022 走看看