Ajax导致requestAnimationFrame错误

时间:2017-05-25 04:30:58

标签: php jquery ajax

我将Ajax代码实施到我的网站后面临错误,请有人帮我确定错误的来源和位置,非常感谢

以下是我的Ajax代码

  $(document).ready(function() {

    $(".desc").click(function() 
    {
      var _id = $(this);

      $.ajax({
          type: "GET",
          url: "../ppuyakul/php/loadProduct.php",
          data: {id: _id},
          success: function(data)
          {
            $("#detail").html(data);

          }});

    });
  });

这是我的错误

jquery.min.js:4 Uncaught TypeError: Failed to execute 'requestAnimationFrame' on 'Window': 1 argument required, but only 0 present.
        at e (jquery.min.js:4)
        at Ab (jquery.min.js:4)
        at Ab (jquery.min.js:4)
        at Ab (jquery.min.js:4)
        at Function.r.param (jquery.min.js:4)
        at Function.ajax (jquery.min.js:4)
        at cata_main.php:31
        at e (jquery.min.js:4)
        at Ab (jquery.min.js:4)
        at Ab (jquery.min.js:4)

0 个答案:

没有答案