摘要:function Explode(const Separator, S: string; Limit: Integer = 0): TArray;var SepLen : Integer; F, P : PChar; ALen, Index : Integer;begin SetLength(Res
阅读全文
摘要:做项目时偶遇的一诡异问题,同样的代码,在ff和IE7以上页面显示正常,但IE6无论怎么改都不起作用,本来以为是IE6的某些浮动bug所致,结果弄了很长时间也不行,后来不经意间把原来设定的font-family: "黑体"属性去掉了,一切恢复正常。。。到网上搜了下,还真有不少人遇到同样的问题,下面摘录
阅读全文
摘要:https://github.com/stone0090/javascript-lessons
阅读全文
摘要:https://github.com/stone0090/OfficeTools.OnlineEditWord
阅读全文
摘要:http://www.cnblogs.com/rushoooooo/archive/2011/06/22/2087542.html
阅读全文
摘要:需要的环境:Adobe Acrobat 7.0 Professional 和 Quite Imposing Plus 1.5d Acrobat plugin (qi160.exe) 程序界面: unit Unit1; interface uses Winapi.Windows, Winapi.Mes
阅读全文
摘要:http://www.dynamicdrive.com/style/layouts/item/css-left-frame-layout/ <!--Force IE6 into quirks mode with this comment tag--><!DOCTYPE html PUBLIC "-/
阅读全文
摘要:uses ShellApi, ActiveX, ComObj, ShlObj; function HasText(Text: string; const Values: array of string): Boolean; var i: Integer; begin Result := True;
阅读全文
摘要:(1)替换掉htmlStr中所有的<font..>和</font> var htmlstr='<font color="#fff">ABC</font><p>dfd</p><font color="#fff">EFG</font>';alert(htmlstr.replace(/<[^<>]*?fo
阅读全文
摘要:delphi修改QQ快捷方式的目标地址达到在启动QQ的同时也能运行自己想要启动的EXE可执行文件。 直接上代码,自已体会 !! Unit1.pas代码如下: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysU
阅读全文
摘要:其实很简单,我这部分代码,前一部分是简单的实现如何使用JS写模板,第二个就是具体的实现了JSON查询的一个扩展。 以后查询Json就有了利器了。 代码如下: /* * 定义模板函数 */ var template = function (queryArr) { var count = 0; for
阅读全文
摘要:Number.prototype.round = function (len) { var old = this; var a1 = Math.pow(10, len) * old; a1 = Math.round(a1); var oldstr = old.toString() var start
阅读全文
摘要:开发的理念是“为复用而开发,为使用而组装”,代码的复用度将是项目和产品的一个重要的技术指标。 var DateTools={ isDate:function(str) { var result = str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);
阅读全文
摘要:function getDataType(any){ /* (1) Object.prototype.toString.call 方法判断类型: 优点:通用,返回"[object String]" 具体object的类型 缺点:不能返回继承的类型 (2)typeof x 缺点:对object类型不能
阅读全文
摘要:<script> function animate(obj, json, interval, sp, fn) { clearInterval(obj.timer); function getStyle(obj, arr) { if(obj.currentStyle){ return obj.curr
阅读全文
摘要:<!-- 无缝滚动图片开始 --> <div id=demopic style="OVERFLOW: hidden; WIDTH: 100%; COLOR: #fff; HEIGHT: 170px"> <table width="100%" border=0 align=center cellpad
阅读全文
摘要:<html><head><title>scrollTop实现图像循环滚动(实例1)</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style> body{margin:0px 0px 0px 0
阅读全文
摘要:/** * Created with JetBrains WebStorm. * NAME: commonCookie.js */(function(window,document){ var commonCookie = {}, singleClear = {}, specialKey = 'co
阅读全文
摘要:测试数据如下: Memo1.text中的数据: { "date":"周二(今天, 实时:12℃)", "dayPictureUrl":"http://api.map.baidu.com/images/weather/day/duoyun.png", "nightPictureUrl":"http:/
阅读全文
摘要:资源地址:http://download.csdn.net/detail/softlib/9670613
阅读全文
摘要:// RSA, a suite of routines for performing RSA public-key computations in// JavaScript.//// Requires BigInt.js and Barrett.js.//// Copyright 1998-2005
阅读全文
摘要:/**** MD5 (Message-Digest Algorithm)* http://www.webtoolkit.info/***/ var MD5 = function (string) { function RotateLeft(lValue, iShiftBits) { return (
阅读全文