刚去csdn结了贴
这个就是所有线程的操作!
新的程式中!
其实这个项目,我只要外面的思路,经过几天的放松,我终于把思路想出来!当然这里面还有测试了很多!
这个就是所有线程的操作!
private void button1_Click(object sender, EventArgs e)
{
Thread thread = new Thread(new ThreadStart(DoWork));
thread.Start();
button1.Enabled = false;
}
private void AA()
{
button1.Enabled = true;
}
private void DoWork()
{
double sum = 0;
for (int i = 0; i < 100000; i++)
{
sum += i;
}
MessageBox.Show(sum.ToString());
this.Invoke(new Action(AA));
}
{
Thread thread = new Thread(new ThreadStart(DoWork));
thread.Start();
button1.Enabled = false;
}
private void AA()
{
button1.Enabled = true;
}
private void DoWork()
{
double sum = 0;
for (int i = 0; i < 100000; i++)
{
sum += i;
}
MessageBox.Show(sum.ToString());
this.Invoke(new Action(AA));
}
新的程式中!
其实这个项目,我只要外面的思路,经过几天的放松,我终于把思路想出来!当然这里面还有测试了很多!
这里讲的是后明的故事
在后明里有0分作文,0分作文的参考标准是,<<文字法>>
有的人说,文字法是潜规则里的一部,也有人说,潜规则是文字法的一部分
现在本文说一下,新中国<<文字法>>的建设,还有一些例子,
文字法的委员会是失神精委员费!
文字法建设和后面的草民分等级有关!!
这个在我们草民史上是没有的!!以前是没有钱不能读书,现在是你学到了文字不能用!
比如"文明用语" ,这个是骂人的,还有比如,卖2010春装中有,卖2010春,这两个字,所以就不能用,
今天早上看到一个例子,是转移一台2010独立的服务器,这里面文字 里有台2010独,所以不能用,
总结一下:"清风不识字,何必乱翻书"!
所以现在想想,朱元璋杀那么多人也是有道理的!因为和朱元璋出来的很多人都是没有读书,所以天下还是要还给读书人!现在文字法限制了读书人
她说:
没有想到你会来加我!
........................我一直在想在会说什么,她会想些什么,结果什么也没有,他说的还是她说的,
在说她,她出现,到她的消息,我只是一个听客,六年,没有几句话,好像就是这么简单,她的故事我也听了,前后的事我也知道!
她问:
新的一年计划好了吗?是呀,我还没有静下来,去计划什么,这是习惯成了自然了,都是空的希望,分期了,其实就是这样简单!不是吗?
我本来想在昨天的早上写下这新东西,是的很久没有写了!
原来坐着的时候,手机动起来,腰的受力才没有这么大!
她说:
她说:
没有想到你会来加我!
........................我一直在想在会说什么,她会想些什么,结果什么也没有,他说的还是她说的,
在说她,她出现,到她的消息,我只是一个听客,六年,没有几句话,好像就是这么简单,她的故事我也听了,前后的事我也知道!
她问:
新的一年计划好了吗?是呀,我还没有静下来,去计划什么,这是习惯成了自然了,都是空的希望,分期了,其实就是这样简单!不是吗?
我本来想在昨天的早上写下这新东西,是的很久没有写了!
原来坐着的时候,手机动起来,腰的受力才没有这么大!
她说:
她说:
Google是支持开源运动的最大公司之一,它们现在总共发布有超过500个的开源项目(大部分都是利用它们的API来完成),本文将列举一些有趣的开源项目,其中很可能有不少你不知道的哦。
代码:
复制代码 | 运行代码 | 另存代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="http://www.aixq.com/js/jquery.js" type="text/javascript"></script>
</head>
<body>
<img src="http://www.suibe.com/images/logo.gif" alt="" name="logo" id="logo" />
<label>
<input type="button" name="cccc" id="cccc" value="Button" onclick="$('#logo').attr('src','http://www.aixq.com/img/logo.gif');" />
</label>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="http://www.aixq.com/js/jquery.js" type="text/javascript"></script>
</head>
<body>
<img src="http://www.suibe.com/images/logo.gif" alt="" name="logo" id="logo" />
<label>
<input type="button" name="cccc" id="cccc" value="Button" onclick="$('#logo').attr('src','http://www.aixq.com/img/logo.gif');" />
</label>
</body>
</html>
这是一个企业网站数据加的结构
attachment.php?fid=128
下载:
attachment.php?fid=127
在线查看
http://www.aixq.com/attachment/1261386205_2797ac72.htm
http://www.aixq.com/attach...
attachment.php?fid=128
下载:
attachment.php?fid=127
在线查看
http://www.aixq.com/attachment/1261386205_2797ac72.htm
http://www.aixq.com/attach...
《红楼梦·葬花演唱:王文娟[4];王志萍;单仰萍;
绕绿堤,拂柳丝,穿过花径,
听何处,哀怨笛,风送声声。
人说道,大观园,四季如春,
我眼中,却只是,一座愁城。
看风过处,落红成阵,牡丹谢,芍药怕,海棠惊,
《红楼梦·葬花》王文娟杨柳带愁,桃花含恨,这花朵儿与人一般受逼凌。
我一寸芳心谁共鸣,七条琴弦谁知音,
我只为,惜惺惺,怜同命,不教你陷落污泥遭蹂躏。
且收拾起,桃李魂,自筑香坟葬落英。
花落花飞飞满天,红消香断有谁怜?
一年三百六十天,风刀霜剑严相逼,明媚鲜妍能几时?
一朝漂泊难寻觅。
花魂鸟魂总难留,鸟自无言花自羞,
愿侬此日生双翼,随花飞到天尽头。
天尽头,何处有香丘?
未若锦囊收艳骨,一杯净土掩风流,
质本洁来还洁去,不叫污淖陷渠沟。
侬今葬花人笑痴,他年葬侬知是谁?
一朝春尽红颜老,花落人亡两不知。
绕绿堤,拂柳丝,穿过花径,
听何处,哀怨笛,风送声声。
人说道,大观园,四季如春,
我眼中,却只是,一座愁城。
看风过处,落红成阵,牡丹谢,芍药怕,海棠惊,
《红楼梦·葬花》王文娟杨柳带愁,桃花含恨,这花朵儿与人一般受逼凌。
我一寸芳心谁共鸣,七条琴弦谁知音,
我只为,惜惺惺,怜同命,不教你陷落污泥遭蹂躏。
且收拾起,桃李魂,自筑香坟葬落英。
花落花飞飞满天,红消香断有谁怜?
一年三百六十天,风刀霜剑严相逼,明媚鲜妍能几时?
一朝漂泊难寻觅。
花魂鸟魂总难留,鸟自无言花自羞,
愿侬此日生双翼,随花飞到天尽头。
天尽头,何处有香丘?
未若锦囊收艳骨,一杯净土掩风流,
质本洁来还洁去,不叫污淖陷渠沟。
侬今葬花人笑痴,他年葬侬知是谁?
一朝春尽红颜老,花落人亡两不知。
引用
public string GetContentSummary(string content, int length, bool StripHTML)
{
if (string.IsNullOrEmpty(content) || length == 0)
return "";
if (StripHTML)
{
System.Text.RegularExpressions.Regex re = new System.Text.RegularExpressions.Regex("<[^>]*>");
content = re.Replace(content, "");
content = content.Replace("﹛", "").Replace(" ", "").Replace(" ", "");
if (content.Length <= length)
return content;
else
return content.Substring(0, length) + "...";
}
else
{
if (content.Length <= length)
return content;
int pos = 0, npos = 0, size = 0;
bool firststop = false, notr = false, noli = false;
System.Text.StringBuilder sb = new System.Text.StringBuilder();
while (true)
{
if (pos >= content.Length)
break;
string cur = content.Substring(pos, 1);
if (cur == "<")
{
string next = content.Substring(pos + 1, 3).ToLower();
if (next.IndexOf("p") == 0 && next.IndexOf("pre") != 0)
{
npos = content.IndexOf(">", pos) + 1;
}
else if (next.IndexOf("/p") == 0 && next.IndexOf("/pr") != 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
sb.Append("
");
}
else if (next.IndexOf("br") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
sb.Append("
");
}
else if (next.IndexOf("img") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
{
sb.Append(content.Substring(pos, npos - pos));
size += npos - pos + 1;
}
}
else if (next.IndexOf("li") == 0 || next.IndexOf("/li") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
{
sb.Append(content.Substring(pos, npos - pos));
}
else
{
if (!noli && next.IndexOf("/li") == 0)
{
sb.Append(content.Substring(pos, npos - pos));
noli = true;
}
}
}
else if (next.IndexOf("tr") == 0 || next.IndexOf("/tr") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
{
sb.Append(content.Substring(pos, npos - pos));
}
else
{
if (!notr && next.IndexOf("/tr") == 0)
{
sb.Append(content.Substring(pos, npos - pos));
notr = true;
}
}
}
else if (next.IndexOf("td") == 0 || next.IndexOf("/td") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
{
sb.Append(content.Substring(pos, npos - pos));
}
else
{
if (!notr)
{
sb.Append(content.Substring(pos, npos - pos));
}
}
}
else
{
npos = content.IndexOf(">", pos) + 1;
sb.Append(content.Substring(pos, npos - pos));
}
if (npos <= pos)
npos = pos + 1;
pos = npos;
}
else
{
if (size < length)
{
sb.Append(cur);
size++;
}
else
{
if (!firststop)
{
sb.Append("...");
firststop = true;
}
}
pos++;
}
}
return sb.ToString();
}
}
{
if (string.IsNullOrEmpty(content) || length == 0)
return "";
if (StripHTML)
{
System.Text.RegularExpressions.Regex re = new System.Text.RegularExpressions.Regex("<[^>]*>");
content = re.Replace(content, "");
content = content.Replace("﹛", "").Replace(" ", "").Replace(" ", "");
if (content.Length <= length)
return content;
else
return content.Substring(0, length) + "...";
}
else
{
if (content.Length <= length)
return content;
int pos = 0, npos = 0, size = 0;
bool firststop = false, notr = false, noli = false;
System.Text.StringBuilder sb = new System.Text.StringBuilder();
while (true)
{
if (pos >= content.Length)
break;
string cur = content.Substring(pos, 1);
if (cur == "<")
{
string next = content.Substring(pos + 1, 3).ToLower();
if (next.IndexOf("p") == 0 && next.IndexOf("pre") != 0)
{
npos = content.IndexOf(">", pos) + 1;
}
else if (next.IndexOf("/p") == 0 && next.IndexOf("/pr") != 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
sb.Append("
");
}
else if (next.IndexOf("br") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
sb.Append("
");
}
else if (next.IndexOf("img") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
{
sb.Append(content.Substring(pos, npos - pos));
size += npos - pos + 1;
}
}
else if (next.IndexOf("li") == 0 || next.IndexOf("/li") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
{
sb.Append(content.Substring(pos, npos - pos));
}
else
{
if (!noli && next.IndexOf("/li") == 0)
{
sb.Append(content.Substring(pos, npos - pos));
noli = true;
}
}
}
else if (next.IndexOf("tr") == 0 || next.IndexOf("/tr") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
{
sb.Append(content.Substring(pos, npos - pos));
}
else
{
if (!notr && next.IndexOf("/tr") == 0)
{
sb.Append(content.Substring(pos, npos - pos));
notr = true;
}
}
}
else if (next.IndexOf("td") == 0 || next.IndexOf("/td") == 0)
{
npos = content.IndexOf(">", pos) + 1;
if (size < length)
{
sb.Append(content.Substring(pos, npos - pos));
}
else
{
if (!notr)
{
sb.Append(content.Substring(pos, npos - pos));
}
}
}
else
{
npos = content.IndexOf(">", pos) + 1;
sb.Append(content.Substring(pos, npos - pos));
}
if (npos <= pos)
npos = pos + 1;
pos = npos;
}
else
{
if (size < length)
{
sb.Append(cur);
size++;
}
else
{
if (!firststop)
{
sb.Append("...");
firststop = true;
}
}
pos++;
}
}
return sb.ToString();
}
}











