https://files.cnblogs.com/humble/jquery.form.js

 

 

function ajaxSubmit(action, formID,hasFile) {
            var options = {
                url:action,
                dataType: "json",
                type: 'POST',
                success: function (json) {
                    alert(json);
                }
            };
            var form = $('#' + formID);
            if (hasFile == true) {
                form.attr("enctype", "multipart/form-data");
            }
            $('#'+formID).ajaxSubmit(options);
        } 

相关文章:

  • 2021-07-07
  • 2021-06-13
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-06-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-08-02
  • 2022-12-23
  • 2021-11-27
  • 2022-01-14
相关资源
相似解决方案