yaozuodaoforfly的博客
yaozuodaoforfly · 共 139 篇文章
js mask
function mask(config){ if(typeof config == 'object'){ this.win = config.win || window; this.tip = config.tip || '请等待...'; this.id = config.id || 'mask'; this.tipColor = config.fontColor || '#ff0000'; }else{ this.win = window; this.tip = '请等待...'; this.id = 'mask'; this.tipColor = '#ff0000'; } this.…
2012-05-11 11:29 · 评论(0)
Special character
Special character Special meaning Entity encoding > Begins a tag. > < Ends a tag. < " Quotation mark. " ' Apostrophe. ' & Ampersand. & 空格 :
2012-05-04 14:09 · 评论(0)
关于“因为数据库正在使用,所以无法获得对数据库的独占访问权”的最终解决方案
ALTER DATABASE [datebase] SET OFFLINE WITH ROLLBACK IMMEDIATE 用完之后再 alter database [dbname] set online 第二种方法: RESTORE DATABASE U2000 FROM DISK = N'D:\data\u2000_backup_201208310000.bak' WITH FILE = 1, NOUNLOAD, REPLACE, STATS = 10 GO 原文:http://kb.cnblogs.com/a/1661095/
2012-04-19 14:08 · sqlserver · 评论(0)
删除Windows本地文件夹命令行
// 删除Windows本地文件夹命令行 private static final String DELETE_FILE_COMMAND = "cmd.exe /C RD /S /Q "%s""; /** * 通过cmd命令行快速删除本地文件夹 * * @param folderPath - 文件夹路径 * @throws IOException * @throws InterruptedException */ public static void deleteFolder(String folderPath) throws IOException, InterruptedExceptio…
2012-03-28 15:28 · 评论(0)
怎样把html文件转换成标准的DOM4j的DOM
由于html文件不是标准的xml文件 比如: 标签不是成对出现的,所以用dom4j是不能解析的 解决方法: 利用cobra.jar架包先把html文件解析成org.w3c.dom.Document类型的dom 然后利用dom4j的方法 DOMReader xmlReader = new DOMReader(); xmlReader.read(org.w3c.dom.Document document) 代码: UserAgentContext uacontext = new SimpleUserAgentContext(); DocumentBuilderFactory factory = …
2012-03-16 16:26 · 评论(7)
不刷新页面
2012-03-15 22:16 · 评论(0)
Create ProgressBar
Create ProgressBar The ProgressBar component can be created from html markup or programatically. Creation from markup is even easier. Add 'easyui-progressbar' class to markup. Get or Set Value We get the current value and set a new value for this component. var value = $('#p').progressbar('getValue…
2012-03-13 23:08 · 评论(0)
反编译chm文件
该文章转载自:http://xintao222.iteye.com/blog/316325 打开命令提示符(cmd.exe)输入下面的命令: HH.EXE -decompile <输出路径> <目标chm文件> hh.exe -decomplie D:\output D:\sample.chm
2012-03-13 15:07 · 评论(0)
chm
[OPTIONS] Auto Index=Yes Compiled File=.\filename.chm Contents File=U2000.hhc Index File=U2000.hhk Title=filename Full-text search=Yes Display compile progress=No Language=0x0804 Chinese (CHINA) Default Topic=\00001.html Binary TOC=No Binary Index=Yes Default Window= Default Font= Create CHI file=N…
2012-03-13 10:53 · 评论(0)
oracle
CREATE OR REPLACE PACKAGE SCOTT.pkg_test as /* 定义ref cursor类型 不加return类型,为弱类型,允许动态sql查询, 否则为强类型,无法使用动态sql查询; */ type myrctype is ref cursor; --函数申明 function get(intID number) return myrctype; Procedure getstudent( intID number, return_list out myrctype ); end pkg_test; =============================…
2012-03-02 16:11 · 评论(0)
oracle存储过程
1.基本结构 CREATE OR REPLACE PROCEDURE 存储过程名字 ( 参数1 IN NUMBER, 参数2 IN NUMBER ) IS 变量1 INTEGER :=0; 变量2 DATE; BEGIN END 存储过程名字 2.SELECT INTO STATEMENT 将select查询的结果存入到变量中,可以同时将多个列存储多个变量中,必须有一条 记录,否则抛出异常(如果没有记录抛出NO_DATA_FOUND) 例子: BEGIN SELECT col1,col2 into 变量1,变量2 FROM typestruct where xxx; EXCEPTION WH…
2012-02-29 17:19 · 评论(0)
format
double d= 0.0735294117647059; System.out.println(String.format("%.2f%%", d* 100)); %.2f%%后两个%%代表的是转义字符%
2012-02-29 10:05 · 评论(0)