1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //post 创建
- fetch("http://web2023.fmode.cn:9999/parse/classes/resort", {
- "headers": {
- "accept": "*/*",
- "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
- "sec-fetch-mode": "cors"
- },
- "referrer": "http://127.0.0.1:4040/",
- "referrerPolicy": "strict-origin-when-cross-origin",
- "body": null,
- "method": "OPTIONS",
- "mode": "cors",
- "credentials": "omit"
- });
- //get 获取
- fetch("http://web2023.fmode.cn:9999/parse/classes/resort/o1I6AwKZlj?", {
- "headers": {
- "accept": "*/*",
- "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
- "if-none-match": "W/\"8d-xLV8VyBN/dQOS/E32U8cw9Kt0xY\"",
- "x-parse-application-id": "dev"
- },
- "referrer": "http://127.0.0.1:4040/",
- "referrerPolicy": "strict-origin-when-cross-origin",
- "body": null,
- "method": "GET",
- "mode": "cors",
- "credentials": "omit"
- });
- //put 添加
- fetch("http://web2023.fmode.cn:9999/parse/classes/resort/o1I6AwKZlj", {
- "headers": {
- "accept": "*/*",
- "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
- "content-type": "text/plain;charset=UTF-8",
- "x-parse-application-id": "dev"
- },
- "referrer": "http://127.0.0.1:4040/",
- "referrerPolicy": "strict-origin-when-cross-origin",
- "body": "{\"id\"=1}",
- "method": "PUT",
- "mode": "cors",
- "credentials": "omit"
- });
|