一、将前台数据,使用ajax中的post、get传到后台

1、生成JSON字符串

1.1在前台页面生成JSON

 

<label>无锡</label><input type="checkbox" name="city" value="无锡" />
    <label>苏州</label><input type="checkbox" name="city" value="苏州" />
    <label>江苏省</label><input type="checkbox" name="province" value="江苏省" />
    <input type="button" name="btn" value="点击查看" id='btn_query'/>
HTML代码

相关文章:

  • 2022-12-23
  • 2021-10-02
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-05-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案