码迷,mamicode.com
首页 >  
搜索关键字:text    ( 52583个结果
WPF多线程访问控件
大家知道WPF中多线程访问UI控件时会提示UI线程的数据不能直接被其他线程访问或者修改,该怎样来做呢?分下面两种情况1.WinForm程序 1 2 1)第一种方法,使用委托: 3 private delegate void SetTextCallback(string text); 4 ...
分类:编程语言   时间:2014-05-14 03:01:21    阅读次数:246
leetcode第一刷_Text Justification
这个题的接受率好低,搞得我一直不敢做。后来认真的看了一下题目,不是很难嘛,字符串的题目ac率就是低,除了难,还因为它的测试用例太多。 思路不难,主要是因为特殊情况太多。纯模拟,我把所有的情况罗列一下,仔细一点的话就能写好了。 1. 当word为空,也就是""时,应该返回一行跟L数目相等的空格。这种情况需要提前判断和处理。 2. 当当前行不是最后一行时,应该尽可能多的放单词,单词不能截断,在这...
分类:其他好文   时间:2014-05-13 00:16:01    阅读次数:341
0703-APP-Notification-statue-bar
1.展示显示textTicker和只有icon的两种情况:当参数showTicker为true时显示否则不显示 // In this sample, we'll use the same text for the ticker and the expanded notification CharSequence text = getText(textId); ...
分类:移动开发   时间:2014-05-13 00:02:35    阅读次数:465
IE下iframe中使用滤镜document.selection.createRange().text获取不到值得解决办法
通常的写法是select方法后跟一个blur方法,但是这里我们不能使用blur方法,应该将blur改为window.parent.document.body.focus();
分类:其他好文   时间:2014-05-12 19:23:37    阅读次数:995
.Net 4.0 Convert Object to XDocument
将Object转换为XDocment对象代码如下:C# – Object to XDocument 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 usin...
分类:Web程序   时间:2014-05-12 04:11:31    阅读次数:371
Django ajax Post
在web项目中,ajax运用非常频繁,今天就给大家展示下DjangoajaxPost的使用方法templates模板---------------------index.html<html> <header></header> <body> <p>name:<inputtype="text"name="nickname"/></p> <inputclass="nam..
分类:其他好文   时间:2014-05-12 03:23:21    阅读次数:359
java.text.SimpleDateFormate错误
SimpleDateFormate sdf = new SimpleDateFormate("yyyy-MM-dd HH:MM:ss");String s = sdf.format(Date)然后这个s输出时的月份老是不对后来看了一下API"yyyy-MM-dd HH:MM:ss"这段室友讲究的M代...
分类:编程语言   时间:2014-05-12 03:05:56    阅读次数:249
ASP.NET中将图片文件保存到数据库
上传图片,将图片名称插入到数据表中 protected void btnSend_Click(object sender, EventArgs e) { string Name = txtName.Text; string pictureName = fupP...
分类:数据库   时间:2014-05-12 01:04:51    阅读次数:293
P?H?P?制?作?姓?名?、?学?号?。?爱?好?等?窗?口
if (radioButton1.Checked == true) textBox2.Text = 姓名: + textBox1.Text + 性别: + radioButton1.Text + 专业 + comboBox1.Text; else textBox2.Text = 姓名: + text...
分类:其他好文   时间:2014-05-11 16:58:29    阅读次数:199
leetcode | Text Justification
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.You shoul...
分类:其他好文   时间:2014-05-11 15:15:29    阅读次数:287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!