开发者

Node.js: JSON Parameter POST

开发者 https://www.devze.com 2023-02-26 01:09 出处:网络
How do I write a JSON开发者_StackOverflow社区 object with a parameter? ThanksIf this isn\'t answering your question, you might want to clarify the question.

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

精彩评论

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