【问题标题】:POST https://localhost:44351/Common/SearchAvailableTechList 500(Internal Server Error)POST https://localhost:44351/Common/SearchAvailableTechList 500(内部服务器错误)
【发布时间】:2020-07-10 14:25:05
【问题描述】:

我在浏览器控制台中遇到错误

POST https://localhost:44351/Common/SearchAvailableTechList 500(Internal Server Error) 

SignalR 文件 javascript 代码:

function TechList(Id, Id2, Id3) {
        if (Id!= "" && Id2!= "") {
            $.ajax({
                url: $("#TechListUrl").val(),
                type: "post",
                dataType: "json",

在javascript中捆绑后,它看起来像:

function TechList(n, t, i) {
    n != "" && t != "" && $.ajax({
        url: $("#TechListUrl").val(),
        type: "post",
        dataType: "json",

捆绑后如何获得:

function TechList(n, t, i) {
    (n != "" && t != "")
{
$.ajax({
        url: $("#TechListUrl").val(),
        type: "post",
        dataType: "json",

【问题讨论】:

    标签: javascript asp.net-mvc signalr.client


    【解决方案1】:

    也许$ 干扰了Bundler。尝试将$ 替换为jQuery

    【讨论】:

    • 它对我有用,谢谢
    猜你喜欢
    • 2017-08-17
    • 1970-01-01
    • 2023-02-20
    • 1970-01-01
    • 2012-03-16
    • 2021-09-07
    • 2019-02-16
    • 2023-03-08
    • 1970-01-01
    相关资源
    最近更新 更多