Si prega di compilare il seguente modulo

// ' + '' + '
'; $('#show-area').append(loadingHTML); } function LoadShow() { // 第一个请求发送时展示loading $(document).on('ajaxStart', function () { $('.overlay').show(); }); } function LoadHide() { // 最后一个请求结束时隐藏loading $(document).on('ajaxStop', function () { $('.overlay').hide(); }); } $('.filechnage').change(function(){ var files = $('.filechnage').prop('files'); $(".files_number").text(files.length+" files selected").css("color","red"); }) // form表单提交 $(".btn_submit").on("click",function () { // if (!$("form#form_data").validationEngine("validate")) return; var formData = new FormData($("#form_data")[0]); $.ajax({ type: "post", dataType: "json", url: "https://custom.aporro.com/web/Home/AporroApi/design_recruit_add", data: formData, // async: false, cache: false, contentType: false, processData: false, beforeSend() { var userEmail = $(".design-email").val(); var phone = $(".design-phoneStrict").val(); var nama = $(".name_on").val(); var designSource= $(".design_source").val(); var designThought= $(".design_thought").val(); // // 验证用户名输入是否合法:非空 不能包含特殊字符 var reg = /^@/; if (userEmail == "" || nama == "" || designSource== ""|| designThought== "") { return false; } }, success: function (data) { if (data.bool == "success") { $("#form_data")[0].reset(); $(".btn-toolb p") .text("Thank you! Aporro team will review your idea and drawing soon, please be patient!"); }else{ $(".btn-toolb p").text(data.va_title) } } }) }) // 获取国家属性数据 $.ajax({ type: "post", dataType: "json", url: "https://custom.aporro.com/web/Home/AporroApi/country_option", cache: false, success: function (data) { // console.log(data.msg); $(".form_country select").html(data.msg); // $(".form_country select option:first").attr("selected", true); $(".form_country select").val("226"); }, }) }) // ]]>