<script language="JavaScript" type="text/javascript">var Timer = function(runnable){   this._runnable=(runnable=(runnable||this));this._runFunc0 = function(){    runnable['run'].apply(runnable);}this._interval = 1000;};Timer.prototype.run = function(){if(this._time_c ...
  • 09:06
  • 浏览 (26)
  • 评论 (0)
  • 分类: JS
<html> <head> <script type='text/javascript' language='JavaScript'> Encrypt = function() { var F = {}; F.toUnicode = function(s){ var res = []; var len = s.length-1; while(len>-1){ var ch = s.charCodeAt(len--); if(!isNaN(ch)){r ...
  • 17:34
  • 浏览 (27)
  • 评论 (0)
  • 分类: JS
2008-08-05

JS-Cookie

/** * cookie管理对象 */ CookieUtil={ /** * 设置Cookie * @param {string} 设置cookie的名称 * @param {string} 设置cookie的值 * @param {object} 其他选项{是一个对象作为参数} */ set : function(name,value,option){ var str=name+"="+escape(value); if(option){ if(opt ...
  • 11:33
  • 浏览 (40)
  • 评论 (0)
  • 分类: JS
var Map = function(){ this._table = []; } Map._Entry=function(k,v){ this._key=k; this.value=v; } Map._Entry.prototype={ toString : function(){ return this._key + ':' + this._value; } } Map.prototype={ ...
  • 11:19
  • 浏览 (204)
  • 评论 (0)
  • 分类: JS
Relucent
搜索本博客
最近访客
博客分类
最近加入圈子
最新评论