03 2010 档案

摘要:Array.prototype.unique = function () { var r = new Array(); o:for(var i = 0, n = this.length; i < n; i++) { for(var x = 0, y = r.length; x < y; x++) { if(r[x]==this[i]) { continue o; } } r[r.len... 阅读全文
posted @ 2010-03-24 12:08 looping 阅读(239) 评论(0) 推荐(0)
摘要:function reverseColor(rgbColor) {//205,15,20 // console.log(rgbColor); rgbColor = rgbColor.replace(/\s/g, ""); var arrRGB = new Array(3); if (rgbColor.indexOf("rgb") > -1) { var... 阅读全文
posted @ 2010-03-16 17:52 looping 阅读(278) 评论(0) 推荐(0)
摘要:Echo The simplest use of echo is to print a string as argument, for example: echo “This will print in the user’s browser window.”; Or equivalently: echo(“This will print in the... 阅读全文
posted @ 2010-03-01 13:06 looping 阅读(247) 评论(0) 推荐(0)
摘要:PHP has a total of eight types: integers, doubles, Booleans, strings, arrays, objects, NULL, andresources.✦Integers are whole numbers, without a decimal point, like 495. ✦ Doubles are floating-point n... 阅读全文
posted @ 2010-03-01 12:33 looping 阅读(399) 评论(0) 推荐(0)