代码: function createWeekReort() { if (form.getForm().isValid()) { Ext.Msg.confirm("提示", "确认生成月报台账吗?", function (a) { if (a == "yes") { var SSRQ = Ext.getCmp("SSRQ").getRawValue(); var KSRQ = Ext.getCmp("KSRQ&quo
when the jquery validation plugin is used for validating the form data, such as below: html code: <form method="post" action="" id="buy-form" novalidate="novalidate"> <table style="margin:35px 150px 0
1.创建Model,添加标注. [Serializable] public class BaseUserModel:BaseModel { [StringLength(100)] [Required(ErrorMessage = "User Name can not be empty")] public string UserName { get; set; } } 2.controller中action传Model到razor页面 public ActionResult Create