开发者

Node.js: JSON Parameter POST

How do I write a JSON开发者_StackOverflow社区 object with a parameter?

Thanks


If this isn't answering your question, you might want to clarify the question.

If you need to POST a JSON object to a server, you're best off using a library like jQuery. Put your object in data and use the following. (See also http://api.jquery.com/jQuery.post/)

$.ajax({
  type: 'POST',
  url: url,
  data: data,
  success: success
  dataType: dataType
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜