摘要: 1.传统ThreadStart 2.ParameterizedThreadStart 3.委托thread = new Thread(delegate() { NoticeBroadcast(userinfos, com2); }); 4.匿名方法 thread = new Thread(() =>NoticeBroadcast(userinfos, com2)); 阅读全文
posted @ 2014-05-04 20:32 MyFirstHome 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 1: public class SpeakLouder 2: { 3: private WavFormat _wavFormat=new WavFormat(); //文件格式 4: private byte[] _audioData; //语音数据 5: private SpeechSy... 阅读全文
posted @ 2014-05-04 20:29 MyFirstHome 阅读(302) 评论(0) 推荐(0) 编辑
摘要: //阻止enter键回发到服务端$(function () { $("input[type=text]").each(function () { $(this).keydown(function (event) { if (event.which || event.keyCode) { if ((event.which == 13) || (event.keyCode == 13)) { retu... 阅读全文
posted @ 2014-05-04 16:03 MyFirstHome 阅读(100) 评论(0) 推荐(0) 编辑