d3.jsonでpostリクエストを送信する

More than 3 years have passed since last update.

メモ


js


var parm = {name:"test", email:"xxx@xxx.com" }

d3.json("http://hoge.com/api")
.header("Content-Type", "application/json")
.post(JSON.stringify(parm), function(error, data) {
console.log(data);
});