The buttocks of the soft-shelled turtle-formdata

        jQuery(document).ready(function($) {
            $("button").click(function(event) {
                var formData = new FormData($("-sharpformdata")[0]);//[0]
                event.preventDefault();
                $(function(){
                    $.ajax(
                        {
                            type:"post",
                            url : "http://test2.com/formdata.php",
                            data:formData,//
                            cache: false,
                            contentType: false,
                            processData: false,
                            dataType:"json",
                            success  : function(data) {
                                var html = "<div>:"+ data.user+"</div>";
                                html +=  "<div>:"+ data.pass+"</div>";
                                $("-sharpshowTips").html(html);
                            },
                        }
                    );
                });

            });
        });

when submitting a form using formdata, if the above code is changed to

var formData = new FormData($("-sharpformdata"))

will report an error, and all form key-value pairs are not defined. This means that the form form was not fetched. Why is that? Please say the principle, not the title

Mar.21,2021
The argument to

new FormData is a DOM object, not a jQuery object.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36c4d-2b3a3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36c4d-2b3a3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?