Skip to content

Commit 66dbcf1

Browse files
committed
docs: fix incorrect sample code
It is not valid that "application/json" and "GET".
1 parent 2df4a3f commit 66dbcf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user_guide_src/source/general/ajax.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Fetch API
1818
.. code-block:: javascript
1919
2020
fetch(url, {
21-
method: "get",
21+
method: "POST",
2222
headers: {
2323
"Content-Type": "application/json",
2424
"X-Requested-With": "XMLHttpRequest"

0 commit comments

Comments
 (0)