javascript - 为什么我在 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"),
继续工作
解决方案
推荐阅读
- rabbitmq - 消费者处理一批数据的时间跟踪机制
- javascript - 可能未处理的 Promise Rejection (id: 1): SyntaxError: JSON Parse error: Unexpected identifier - React-Native
- powershell - Powershell 中的管道
- html - css- 200VH 的视频背景
- soap - 如何在 ubuntu 16.04 上安装 php5.6 版本的 php5.6-soap 扩展
- json - 如何在 JSON 中漂亮地格式化 Traefik 日志?
- visual-studio-code - VS Code:编译器错误 - 权限被拒绝
- python - 缺少来自 coinApi 的分钟数据
- c++ - 在 C++ 中按列读取文件
- node.js - 如何将多个字段与猫鼬查询中的查询字符串的一部分进行匹配?