zoukankan      html  css  js  c++  java
  • easyui form submit 不提交

    http://bbs.csdn.net/topics/390811964
    function saveProduct() {
                //$('#fm').form('submit', {
                //    url: url,
                //    onSubmit: function () {
                //        return $(this).form('validate');
                //    },
                //    success: function (result) {
                //        var result = eval('(' + result + ')');
                //        if (result.errorMsg) {
                //            $.messager.show({
                //                title: 'Error',
                //                msg: result.errorMsg
                //            });
                //        } else {
                //            $('#dlg').dialog('close');        // close the dialog
                //            $('#dg').datagrid('reload');    // reload the user data
                //        }
                //    }
                //});//《-IE9测试有问题,改为Jquery方式提交。
                if ($('#fm').form("validate"))
                {
                    $.post(url, $('#fm').serialize(), function (result) {
                        if (result.success == true) {
                            $('#dlg').dialog('close');
                            $('#dg').datagrid('reload');
                        }
                        else {
                            $.messager.show({
                                title: 'Error',
                                msg: result.message
                            });
                        }                   
                    });
                }
            }
  • 相关阅读:
    zookeeper C API
    《accelerated c++》第九章---设计类
    redis memcache 比较
    redis 学习记录
    php memcache 使用学习
    php新手需要注意的高效率编程
    linux常用命令
    curl和file_get_contents 区别以及各自的优劣
    php序列化问题
    socket编程 123
  • 原文地址:https://www.cnblogs.com/zkwarrior/p/4832769.html
Copyright © 2011-2022 走看看