摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;MySQLDriverCS是MySQL数据库的一个免费开源的.NET驱动程序,... 阅读全文
摘要:
Google Search实现其实通过传递查询关键字构建一个url,然后根据Http请求获取相关内容以json格式返回到客户端。关键是url的构建格式:http://www.google.cn/complete/search?hl=en&client=suggest&js=true&qu=" + Request.QueryString["qu"] 下面根据url创建http... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--执行左移右移函数:var$get=function(id){return"string"==typeofid?document.getElementById(id):id;};varExtend=fu... 阅读全文
摘要:
function StringBuilder(value) { this.strings = new Array(""); this.append(value); } // Appends the given value to the end of this instance. StringBuilder.prototype.append = function (value) { if (valu... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--setInterval(fun,time)函数fun以间隔time循环执行clearInterval(timer)清除定时器setTimeout(fun,time)函数fun在time后执行一次下面实... 阅读全文
摘要:
获取图片大小:var originImage = new Image();function GetImageWidth(oImage) { if (originImage.src != oImage.src) originImage.src = oImage.src; return originImage.width;}function GetImageHeight(oImage) { if (o... 阅读全文