
js
YiYaYo
这个作者很懒,什么都没留下…
展开
-
验证
// 为 Array 类增加一个 max 方法Array.prototype.max = function(){ var i, max = this[0]; for( i = 1; i { if( max max = this[i]; } return max;}// 为 String 类增加一个 trim 方法String.prototype.trim = function(){转载 2006-06-27 14:25:00 · 1197 阅读 · 0 评论 -
验证码JSP
Color getRandColor(int fc,int bc){//给定范围获得随机颜色 Random random = new Random(); if(fc>255) fc=255; if(bc>255) bc=255; int r=fc+random.nextInt(bc-fc); int g=fc+random.nextInt(bc-fc); int b转载 2006-07-06 13:50:00 · 1011 阅读 · 0 评论