//---表单提交---- $("#destiation_form").submit(function(){ var from_city_value=$("#from_city").val(); if(from_city_value.indexOf('MFM')>0){ $("#to_city").attr("value",""); } var to_city_value=$("#to_ci…
一.Form表单验证 用于做用户提交数据的验证1.自定义规则 a.自定义规则(类,字段名==html中的name值)b.数据提交-规则进行匹配代码如下: """day19_django URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/…