ajax通过PUT方式调用WEBAPI

$.ajax({
            url: "http://localhost:63470/apiserver/Stu",
            type: "Post",
            dataType: "json",
            data: { _method: "PUT", Id: "6", StuName: "test", Age: 10 },
            success: function (d) {
                console.log(d);
            }
        })

 

posted on 2020-05-30 21:45  静以修身俭以养德  阅读(252)  评论(0编辑  收藏  举报

导航