IT
上一页 1 2 3 4 5 6 7 8 ··· 55 下一页
摘要: 如下代码请 帮忙完善function judgeDelete() { if(confirm("确定要删除吗?")) { window.location.href="doDelete.jsp"; } }[删除]"/>当单击删除时就弹出对话框提示“确定要删除吗?” 单击确定就提交表单,到处理页面根据 传过去的id 进行删除触发onclick事件时把id值传过去。)">[删除]"/> 阅读全文
posted @ 2013-12-18 17:43 liufei 阅读(1825) 评论(0) 推荐(0)
摘要: //数据库publicclassGF_DA{//////执行SQL语句sConnStr连接字符串,sql执行的sql命令返回第一行第一列////////////publicstaticobjectExecSQL(stringsConnStr,stringsql){using(SqlConnectionconn=newSqlConnection(sConnStr)){using(SqlCommandcmd=newSqlCommand()){try{conn.Open();cmd.Connection=conn;cmd.CommandText=sql;returncmd.ExecuteScalar 阅读全文
posted @ 2013-12-17 14:18 liufei 阅读(138) 评论(0) 推荐(0)
摘要: //获取部分publicclassGF_GET{//////根据坐标点获取屏幕图像//////左上角横坐标///左上角纵坐标///右下角横坐标///右下角纵坐标///publicstaticImageGetScreen(intx1,inty1,intx2,inty2){intw=(x2-x1);inth=(y2-y1);ImagemyImage=newBitmap(w,h);Graphicsg=Graphics.FromImage(myImage);g.CopyFromScreen(newPoint(x1,y1),newPoint(0,0),newSize(w,h));IntPtrdc1=g. 阅读全文
posted @ 2013-12-17 14:17 liufei 阅读(191) 评论(0) 推荐(0)
摘要: //读写INIpublicclassGF_INI{[DllImport("kernel32")]privatestaticexternlongWritePrivateProfileString(stringsection,stringkey,stringval,stringfilePath);[DllImport("kernel32")]privatestaticexternintGetPrivateProfileString(stringsection,stringkey,stringdef,StringBuilderretVal,intsize,st 阅读全文
posted @ 2013-12-17 14:15 liufei 阅读(163) 评论(0) 推荐(0)
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingMicrosoft.Win32;//对注册表操作usingSystem.Collections;//使用ArraylistusingSystem.Security.Cryptography;//加密解密usingSystem.IO;//文件操作usingSystem.Runtime.InteropServices;//调用DLLDllImportusingSystem.Management;//获取硬件信息usingSystem.Net;//获取IP地址是用到us 阅读全文
posted @ 2013-12-17 14:14 liufei 阅读(210) 评论(0) 推荐(0)
摘要: /// /// 截取字符串 超长 用冒号显示 /// /// /// /// public static string SubStr(string sString, int nLeng) { if (sString.Length /// 截取字符串 超长 换行 /// /// /// /// public static string SubStrWrap(string sString, int nLeng) { string sNewStr = sString.Substring(0, nLeng); StringBuilder builder = new StringBu... 阅读全文
posted @ 2013-12-17 14:11 liufei 阅读(388) 评论(0) 推荐(0)
摘要: 快递查询接口 http://webservice.36wu.com/ExpressService.asmxip查询接口 http://webservice.36wu.com/ipService.asmx天气预报接口 http://webservice.36wu.com/weatherService.asmx身份证查询接口 http://webservice.36wu.com/IdCardService.asmx手机归属地接口 http://webservice.36wu.com/MobilePhoneService.asmx翻译接口 http://webservice.36wu.com/Tra 阅读全文
posted @ 2013-12-02 11:03 liufei 阅读(558) 评论(0) 推荐(0)
摘要: 在Visaul Studio 2010中写js或css代码,缺少像写C#代码时的那种折叠功能,当代码比较多时,就很不方便。今天发现,已经有VS2010扩展支持这个功能,它就是——JSEnhancements(下载地址:http://down.51cto.com/data/169515)。用了一下,感觉不错,定义region,只需将#region写在注释中即可。请看下面的演示:先看JavaScript未使用JSEnhancements的情况:1. 使用JSEnhancements之后(未定义region):折起展开2. 使用JSEnhancements之后(定义了region):折起展开再来看看 阅读全文
posted @ 2013-11-21 10:02 liufei 阅读(448) 评论(0) 推荐(0)
摘要: 两个div同时滚动 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbb 阅读全文
posted @ 2013-10-29 09:02 liufei 阅读(1096) 评论(0) 推荐(0)
摘要: 一:首先选择 Office 2010 Toolkit.exe 右键 选择属性 –兼容性 然后 选择以管理员身份运行此程序 然后 双击 Office 2010 Toolkit.exe需要安装的工具及注册码 阅读全文
posted @ 2013-09-12 15:17 liufei 阅读(856) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 55 下一页