<scriptlanguage="javascript"> ttd.innerText="td的值"; </script> <tdid="ttd"></td> 黑色头发:http://heisetoufa.iteye.com
selectdate_format(datetime,'%Y-%m-%d')fromtb; 黑色头发:http://heisetoufa.iteye.com/
selectu_id,count(distinctu_role)fromt.tablegroupbyu_role; 黑色头发:http://heisetoufa.iteye.com/
C3P0是一个开放源代码的JDBC连接池,它在lib目录中与Hibernate一起发布,包括了实现jdbc3和jdbc2扩展规范说明的Connection和Statement池的DataSources对象。 C3P0配置: 首先肯定是要下载个包的 c3p0-0.9.1-pre11.bin.zip 解压后把bin下的c3p0-0.9.1-pre11.jar包拷贝到项目下的lib里 接下来新建个连接文件 packagedbc; importjava.beans.PropertyVetoException; importjava.sql.Connection; importjava.sql.S...
fileBean.getFieldValue("name");黑色头发:http://heisetoufa.iteye.com/
Syntaxerror,annotationsareonlyavailableifsourcelevelis5.0解决办法:Project->Properties->JavaCompiler->CompilerComplianceLevel选择5.0或者以上的jdk版本Project->JavaBuildPath->Libraries->AddLibrary...->JUnit->Select"JUnit4.0"->Finish经过以上设置后可顺利解决问题。黑色头发:http://heisetoufa.iteye.com
1.我报错除了报如题的错误外,还报了errorlistenerStart的错误。我的项目是从svn检出来的,虽然包已经放到lib中。但实际并未加到path的Libraries里,因此buildpath中的libraries选项卡点addjars。把没加进的包加进去就可以了。2.把X:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\temp0\work删除掉,clean项目,重新启动tomcat即可。3.jre版本的问题。在java的compile下面选对应的jre即可。黑色头发:http://heisetoufa.iteye...
如果碰到警告什么什么已过时改成style=""的形式就可以了黑色头发:http://heisetoufa.iteye.com/
如果要替换height="1";height="2";height="3";为style="height:1px;";style="height:2px;";style="height:3px;";因为value不同,所以用正则表达式来替换就方便的多了ctrl+h打开替换对话框,勾选使用,选择正则表达式查找中:{height=\"}{[0-9]}+{\"}替换中:style="height:\2px;"这样就可以把不同value的属性全部替换了\2的意思是把查找中第二个{}里的项挪到替换中用其他字符可以查看msdn的字符列表黑色头发:http://heisetoufa.iteye.com/
调用js的aspx页面中需要引入js文件 stringjsStr=@"<Scriptlanguage='JavaScript'>test();</Script>"; ClientScript.RegisterStartupScript(Page.GetType(),"js",jsStr); 黑色头发:http://heisetoufa.iteye.com/
privatevoid全屏ToolStripMenuItem_Click(objectsender,EventArgse) { groupBox2.Dock=DockStyle.Fill;//全屏显示 } 黑色头发 http://heisetoufa.iteye.com
SqlConnectionmyConnection=newSqlConnection("DataSource=ZL4306;InitialCatalog=kk;UserID=sa");//DataSource=这里是数据库服务器的主机名,InitialCatalog=这里是数据库名,ID=这里是登陆用户名 SqlDataAdaptermyCommand1=newSqlDataAdapter("selectdmsm1,dmzfromkk_codewheredmlb='6'",myConnection);//连接数据库得到SqlDataAdapter SqlDataAdaptermyComman...
依次点击“开始”->“控制面板”->“程序”,“在程序和功能”找到并点击“打开或关闭Windows功能”进入Windows功能设置对话框。找到并勾选“Telnet客户端”和“Telnet服务器”,最后“确定”按钮,稍等片刻即可完成安装。黑色头发:http://heisetoufa.iteye.com/
usingSystem.Diagnostics; System.Diagnostics.Stopwatchstopwatch=newStopwatch(); stopwatch.Start();//开始监视代码运行时间 //要测试的代码写这里 stopwatch.Stop();//停止监视 TimeSpantimespan=stopwatch.Elapsed;//获取当前实例测量得出的总时间 doublehours=timespan.TotalHours;//总小时数 doubleminutes=timespan.TotalMinutes;//总分钟数 doubleseconds=tim...
在Form1中打开Form2窗口演示 include"Unit2.h"(根据保存的文件名定)TForm2form2=newTForm2(this);form2->ShowModal();//ShowModal解释:如果没关闭模态窗体,程序是不会执行下一行delete的,Show()则不会等,会直接往下执行deleteform2; 黑色头发:http://heisetoufa.iteye.com/ <!-本文包含:- <!--
为了方便也为了练习,写了一个往图片上叠加字符的软件 编译器为BCB6 所用技术总结: 1,通过浏览按钮打开文件夹: SelectDirectory 2,定时器: Timer 3,图片文件操作: FileOpen,FileSeek,FileWrite,FileClose 4,剪切/移动文件 MoveFile 5,获取一个路径下的文件名: FindFile();//自己封装的一个方法 不提供下载,自己留个备份 黑色头发:http://heisetoufa.iteye.com/ <!-本文包含:- <!--
创建文件夹: AnsiStringdirPath="C:\\toufa"if(!DirectoryExists(dirPath)){ CreateDir(dirPath);//文件夹不存在则创建} ForceDirectories("C:\\hei\\se\\tou\\fa");//创建多级目录 黑色头发:http://heisetoufa.iteye.com/ <!-本文包含:- <!--
defineNO_WIN32_LEAN_AND_MEANinclude<shlobj.h>include<vcl.h>//以上这三个要放在.cpp文件的最上边//---------------------------------------------------------------------------include<shlobj.h>bool__fastcallCrnBrowserDir(HANDLEhWin,LPSTRlpCaption,LPSTRlpDir,LPSTRlpDispName){ BROWSEINFObi;LPITEMID...
exe文件要在其他机器上运行,要做成能够脱离bcb的exe程序才行 1、Project->Options->Compiler->点选Release 2、Project->Options->Linker->取消UsedynamicRTL选项 3、Project->Options->Packages->取消Buildwithruntimepackages选项 4、Tools->DebuggerOptions->取消Integrateddebbugging选项[非必须,建议取消] 黑色头发:http://heisetou...
把下边代码放到一个按钮里,按一下这个按钮,然后关闭程序,会自动再次打开这个程序 try{ Application->Initialize();Application->CreateForm(__classid(TForm1),&Form1);Application->Run();ShellExecute(NULL,"open",Application->ExeName.c_str(),NULL,NULL,SW_SHOWNORMAL);}catch(Exception&e){ } 黑色头发:http://heisetoufa.iteye.c...