摘要: POST提交前的验证: formcheck= new FormCheck('formular',{onSubmit:onsubmitfun}); onSubmit:onsubmitfun提交前的验证function方法 formcheck.options.submit=false时就不提交了自定义验证function方法: <input type="text" name="custom" class="validate['required','%customCheck"> valid 阅读全文
posted @ 2011-09-05 17:14 天纯蓝 阅读(422) 评论(0) 推荐(0)
摘要: var data = $.ajax({url:"same.php",type:'GET',async:false,cache:false}).responseText;主要是 async 参数 阅读全文
posted @ 2011-09-05 17:05 天纯蓝 阅读(692) 评论(0) 推荐(0)
摘要: System.IO.Ports.SerialPortcom=newSystem.IO.Ports.SerialPort("com3");com.Open();com.WriteLine("P");com.Close();//是不是很简单 阅读全文
posted @ 2011-09-05 16:55 天纯蓝 阅读(513) 评论(0) 推荐(0)
摘要: //需求引用控件“Interop.SpeechLib.dll”//代码如下:SpVoicem_spVoice=newSpVoice();m_spVoice.Speak("你好",SpeechVoiceSpeakFlags.SVSFlagsAsync);//是不是很简单 阅读全文
posted @ 2011-09-05 16:52 天纯蓝 阅读(495) 评论(0) 推荐(0)