Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery 3.1.1中带有php bootstrap4的$.ajax()_Jquery_Ajax - Fatal编程技术网

jQuery 3.1.1中带有php bootstrap4的$.ajax()

jQuery 3.1.1中带有php bootstrap4的$.ajax(),jquery,ajax,Jquery,Ajax,我有以下错误:uncaughttypeerror:$。ajax不是包含此代码的函数: $("#fomulariollamada").submit(function(event){ // cancels the form submission event.preventDefault(); submitForm(); }); function submitForm(){ // Initiate Variables With Form Content var name = $(

我有以下错误:
uncaughttypeerror:$。ajax不是包含此代码的函数

$("#fomulariollamada").submit(function(event){
  // cancels the form submission
  event.preventDefault();
  submitForm();
});

function submitForm(){
  // Initiate Variables With Form Content
  var name = $("#NombrePersona").val();
  var tel = $("#NumeroTelefono").val();
  var email = $("#CorreoElectronico").val();

  $.ajax({
    type: "POST",
    url: "php/process.php",
    data: "name=" + name + "&email=" + email + "&tel=" + tel,
    success : function(text){
      if (text == "success"){
        formSuccess();
      }
    }
  });
}

function formSuccess(){
  $( "#msgSubmit" ).removeClass( "hidden-xl-down" );
}
我使用的是
jqueryv3.2.1
。我怎样才能解决这个问题?我正在学习jQuery


非常感谢

您可能正在使用jQuery的超薄版本吗?不包括$.ajax函数