0

MVC コントローラーへの jQuery 投稿があります。呼び出しは Firefox と Chrome で正常に動作しますが、IE を使用するとオブジェクトのプロパティが null になりますか?

Internet Explorerでこれを引き起こしている可能性のある考え

            var orderModel =
            {
                FirstName: this.address['name_first'],
                Surname: this.address['name_last'],
                Amount: this.finalTotal,
                Line1: this.address['line1'],
                Line2: this.address['line2'],
                City: this.address['city'],
                Code: this.address['code'],
                Region: this.address['region'],
                Country: this.address['country'],
                Shipping: shippingCost,
                Phone: this.address['phone'],
                EmailAddress: this.address['email_address'],
                OrderItems: items2
            };
        var form;
        $.ajaxSetup({ 'async': false });
        $.ajaxSetup({ cache: false });
        $.ajax({
            type: "POST",
            contentType: "application/json; charset=utf-8",
            url: this.url,
            data: JSON.stringify(orderModel),
            dataType: "json",
            success: function(response) {
                // Process result...
            }
        });

    [HttpPost]
    public ActionResult AddPurchaseDetails(OrderModel order)
    {
        //DO Something...
     }
4

0 に答える 0