首页 > 解决方案 > 为什么我在 jquery ajax 帖子上不断收到 405 方法?

问题描述

我不断收到不允许的 405 方法

$("#username").bind("keyup",function()
   {

     let a_dictionary = {"a": "test"};
      $.ajax("/test", {

        async:true,
        dataType: "text",
        type:"POST",
        data:a_dictionary,
        success: $("#paragraph").html("success"),
        error: $("#paragraph").html("error"),


      });
   });

我正在尝试将 a_dictionary 字典发送到 /test

error: $("#paragraph").html("error"), 继续工作

标签: javascriptjqueryajaxpost

解决方案


推荐阅读