L
L
LordPrimes2018-02-27 18:22:32
AJAX
LordPrimes, 2018-02-27 18:22:32

Difference between method and type?

Good afternoon. I always used type post or get in Ajax, but I saw some in the documentation for 2016 that they write method. For me, it makes no difference that this and that serves as an indicator through which method we transfer data through post or get requests. If I'm wrong, explain the difference

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SagePtr, 2018-02-27
@SagePtr

type (default: 'GET')
Type: String
An alias for method . You should use type if you're using versions of jQuery prior to 1.9.0.

O
OKyJIucT, 2018-02-27
@OKyJIucT

Judging by the documentation, this is the same method, only with a different name, and it is desirable to use it with jQuery <= 1.9 version

type (default: 'GET')

Type: String
An alias for method. You should use type if you're using versions of jQuery prior to 1.9.0.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question