在Windows 8上发布发布请求吗? [英] Making a post request inn Windows 8?
本文介绍了在Windows 8上发布发布请求吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿!
我正在尝试向Windows 8中的Web Api发出发布请求.
我想这样做(JavaScript):
Hey!
Im trying to make a post request to my Web Api in Windows 8.
I want to do this (Javascript):
$.ajax({
url: "/api/Submissions",
data: "{ 'Id':'0', 'Sample':'hvjngh' }",
type: "POST",
contentType: "application/json;charset=utf-8"
});
但是不知道我将如何在WinRT中执行此操作...
确实感谢所有帮助或支持.
But don''t know how I will do this in WinRT...
All help or support is indeed appreciated.
推荐答案
.ajax({ url:" , 数据:" , 类型:" , contentType:" });
.ajax({ url: "/api/Submissions", data: "{ 'Id':'0', 'Sample':'hvjngh' }", type: "POST", contentType: "application/json;charset=utf-8" });
但是不知道我将如何在WinRT中执行此操作...
确实感谢所有帮助或支持.
But don''t know how I will do this in WinRT...
All help or support is indeed appreciated.
这篇关于在Windows 8上发布发布请求吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文