我正在使用JIRA REST API来创建一个新问题,并且在描述和一些其他自定义字段中有一些非英语字母表.请求JSON看起来像
{
"fields": {
"issuetype": {
"id": 10303
},
"description": " Additional informations",
"customfield_11419": "",
"customfield_11413": "Editor: Øyst gården",
"customfield_11436": {
"value": "DONE"
},
"customfield_11439": "Jørund"
}
}
Run Code Online (Sandbox Code Playgroud)
使用以下代码完成HTTP POST后,我从端点返回OK响应.
HttpWebRequest request;
WebResponse response;
request = WebRequest.Create(jira_url) as HttpWebRequest;
request.Credentials = CredentialCache.DefaultCredentials;
request.Method = "POST";
request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
byte[] authBytes = Encoding.UTF8.GetBytes((jira_email + ":" + jira_token).ToCharArray());
request.Headers["Authorization"] = "Basic " + Convert.ToBase64String(authBytes);
if (!string.IsNullOrEmpty(json_string)) //the inpot JSON string to be submitted
{
request.ContentType = "application/json; charset=utf8"; …Run Code Online (Sandbox Code Playgroud) 我创建了一个Windows手机应用程序(适用于WP 8和8.1),并将该应用程序发布到Windows手机商店进行beta测试.我尝试在我的Windows平板电脑上下载并安装应用程序,即戴尔Windows 8平板电脑http://www.flipkart.com/dell-venue-8-pro-tablet/p/itmdutftjdkcec3x?pid=TABDUTFZW4XKAYPS 它说应用程序设备不支持.因此可以在平板电脑上运行应用程序(移动应用程序).我可以直接在平板电脑上部署xap文件吗?如果是这样的话?或者还有其他方法可以让它在平板电脑上运行吗?
我正在使用 WPF TextBlock 绑定修改的日期时间字段并显示数据,但我想以自定义格式显示它,例如“DD.MM.YY HH:MM”。我尝试了下面的 xaml,但它没有以请求的格式呈现数据,但它将数据显示为 mm/dd/yyy hh:mm:ss 长日期时间字符串
<TextBlock Text="{Binding Modified, StringFormat={}{0:DD.MM.YY HH:MM}}" VerticalAlignment="Center" Style="{StaticResource ResourceKey=DateLabelStyle}" ></TextBlock>
Run Code Online (Sandbox Code Playgroud)
我怎样才能让它以 DD.MM.YY HH:MM 格式显示数据?我需要编写单独的转换器来执行此操作吗?
我在多选列表上使用bootstrap multiselect插件,在按钮点击事件上我必须进行ajax调用.
我可以从插件文档中看到onSelectAll事件有助于检测用户按下选择所有选项的时间
http://davidstutz.github.io/bootstrap-multiselect/#configuration-options-onSelectAll
Run Code Online (Sandbox Code Playgroud)
但是也可以在按钮点击事件上检查相同的内容.我的多选初始化如下所示
$(function () {
$("#SelectedListA").multiselect({
enableCaseInsensitiveFiltering: true,
includeSelectAllOption: true
});
});
Run Code Online (Sandbox Code Playgroud)
按钮点击的事件就像
$("#btn_loadSchools").click(function(){
var all_selected= ??? //any way to detect whether all items are selected or not
FillDropdownSchools(all_selected,$('#SelectedListA').val());
});
var FillDropdown2 = function (all_selected,selectedItems) {
}
Run Code Online (Sandbox Code Playgroud)