摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html> <head> <title>登陆</title> <script type="text/javascript"> function test() { var re = /^[a-zA-Z_]\w*$/;//试了n遍总算试出来了,生成后要刷新浏览器 var msg = document.getElementById("1").va 阅读全文
posted @ 2012-02-19 17:57 zwjyx_ 阅读(215) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace c练习{ class Program { static void Main(string[] args) { /* string[] str = { "aaa", "ddd", "bbb","ccc" }; Array.Sort(str);//字符串数组排序a~z; ... 阅读全文
posted @ 2012-02-19 17:49 zwjyx_ 阅读(181) 评论(0) 推荐(0) 编辑
摘要: public partial class Form1 : Form { public Form1() { InitializeComponent(); TextBox.CheckForIllegalCrossThreadCalls = false; } //单线程和多线程 void count() { Stopwatch sw = new Stopwatch(); sw.Start(); for (int i = 0; i <900000000;i++) { } sw.Stop(); MessageBox.Show(sw.ElapsedMilliseconds.ToString());/ 阅读全文
posted @ 2012-02-19 16:25 zwjyx_ 阅读(245) 评论(0) 推荐(0) 编辑