摘要: 序列化后的数据可以通过Ajax向后台传递var params = jQuery("#iForm").formSerialize(); //对表单进行校验,所有字段都有效时,返回truevar isValid = $("#iForm").form('validate'); if (!isValid) 阅读全文
posted @ 2021-09-03 15:41 强者qiang 阅读(139) 评论(0) 推荐(0)
摘要: <%-- // 设置每隔1秒刷新一次--%> <%-- response.setIntHeader("Refresh", 15);--%> 阅读全文
posted @ 2021-09-03 10:15 强者qiang 阅读(73) 评论(0) 推荐(0)
摘要: 子页面上: function addNew(){ var rows = jQuery('#mydatagrid').datagrid('getSelections'); if(rows.length <= 0){ jQuery.messager.alert("操作提示", "请选择至少一条记录!", 阅读全文
posted @ 2021-09-03 10:05 强者qiang 阅读(67) 评论(0) 推荐(0)