$("#rap_save_draft").click(function(){ rap_start_editor.sync();//同步KindEditor的内容 // 取得要提交的参数 var draft_content = $('#rap_start_content').val(); var draft_type = '2'; // 取得要提交页面的URL var action = 'URL'; // 创建Form var form = $('<form></for
把视图省.市.街道表单数据,封装成一个类,作为action参数.如下: action方法参数类型: namespace MvcApplication1.Models{ public class Customer { public string Address { get; set; } }} 在自定义ModelBinder中,接收视图表单数据,封装成Customer类. using System.Web; using System.Web.Mvc; using M
//---表单提交---- $("#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