2017-05-02 16 views

답변

0

그것은 밝혀, 난 그냥 먼저 JSON을 캐릭터 라인 화하는 데 필요한 다음 일했다 :

fetch("http://localhost:1111/hello", { 
    mode: "cors" 
    body: JSON.stringify({name: "John Doe"}) 
}).then(() => { 
    console.log("yay! it worked"); 
});