2012年7月27日
摘要: // We begin with the constructorfunction Circle(radius) { // r is an instance property, defined and initialized in the constructor. this.r = radius;}// Circle.PI is a class property--it is a property of the constructor function.Circle.PI = 3.14159;// Here is an instance method that computes a ... 阅读全文
posted @ 2012-07-27 15:11 rorodo 阅读(288) 评论(0) 推荐(0)
  2012年7月17日
摘要: function Complex(real, imaginary) { this.x = real; // The real part of the number this.y = imaginary; // The imaginary part of the number } ;Complex.prototype.magnitude = function( ) { return Math.sqrt(this.x*this.x + this.y*this.y); };Complex.prototype.negative = function( ) { ... 阅读全文
posted @ 2012-07-17 15:53 rorodo 阅读(241) 评论(0) 推荐(0)
  2012年7月13日
摘要: uniqueID=function(){if(!arguments.callee.id) arguments.callee.id=0;return arguments.callee.id++;}uniqueID();uniqueID();uniqueID();alert(uniqueID.id);uniqueID.id=0;//设置uniqueID属性id为0.alert(uniqueID.id);//0实现一个函数,使用自己的属性来存储雍久值。但在函数外部,可以重设id为0.uniqueID=(function(){var id=0;return function(){return id++ 阅读全文
posted @ 2012-07-13 15:39 rorodo 阅读(215) 评论(0) 推荐(0)
  2012年7月11日
摘要: //函数add和substract.function add(x,y){return x+y;}function substract(x,y){return x-y}//operate函数调用“operator”参数传入的函数,比如add\abstract。function operate(operator,operatd1,operatd2){return operator(operatd1,operatd2);}operate(add,4,5);//调用add(4,5)函数。9operate(add,operate(add,5,1),operate(substract,4,2));//8/ 阅读全文
posted @ 2012-07-11 15:47 rorodo 阅读(276) 评论(0) 推荐(0)
摘要: case "object":n=flexisum.apply(this.element)://不懂什么意思。 阅读全文
posted @ 2012-07-11 14:34 rorodo 阅读(117) 评论(0) 推荐(0)
  2012年6月26日
摘要: Logical operatorsvar a1 = true && true; // t && t returns truevar a2 = true && false; // t && f returns falsevar a3 = false && true; // f && t returns falsevar a4 = false && (3 == 4); // f && f returns falsevar a5 = "Cat" & 阅读全文
posted @ 2012-06-26 16:05 rorodo 阅读(197) 评论(0) 推荐(0)
  2012年5月31日
摘要: 两张表:表table1,有Id,areaName,areaGuid。Id为主键。表table2,有areaName,Id1,Id2。按照表1中areaName查表2中areaName字段相同的记录,然后把Id1填入表1中的areaGuid中。表2记录的areaName有重复,但areaId1,Id2不同。1、可以用左连接,连接表1和表2.根据左连接的定义,一切Name以表1为准,表2中不同则舍去,但如果表2中Name相同的有多条,则表1也相对应重复自己为多条。所以先要把表2中重复的去掉,否则表1就有可能增长数据个数。忘了怎么查询表2中相同数据,所以只好用笨办法,幸亏知道有那些数据重复。把它们找 阅读全文
posted @ 2012-05-31 14:19 rorodo 阅读(198) 评论(0) 推荐(0)
  2012年5月30日
摘要: Error: The table '.........\NewParam.dat' does not exist. [MsgId: MERR-13889]Warning: Extension parameng.dll reports error -13889 on call to function ExtPerProcessInitialize [MsgId: MWAR-10485]Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't ini 阅读全文
posted @ 2012-05-30 15:04 rorodo 阅读(1415) 评论(0) 推荐(0)
  2012年5月25日
摘要: 系统 win xp浏览器 IE6,firefoxLoadrunner11破解版搜索整个中文网络,找解决办法。1.IE插件的缘故工具—>internet选项—>高级 ,把”启用第三方浏览器扩展”前面的勾去掉,再”确定”。通常安装Firfox等浏览器后,都会勾选这个选项,导致不能正常录制。【无用】2.LoadRunner的注册信息被改了在系统中安装软件时有可能将LoadRunner注册表修改掉,导致LoadRunner录制脚本时不能弹出IE页面。换种说法就是LR的注册信息被修改,无法找到IE路径。如何重新注册LR呢?在lr的安装目录(例如D:\Program Files\Mercury 阅读全文
posted @ 2012-05-25 14:50 rorodo 阅读(36848) 评论(1) 推荐(1)
  2012年5月24日
摘要: loadrunner中的代理服务器问题。还有一些网络问题。 阅读全文
posted @ 2012-05-24 16:20 rorodo 阅读(757) 评论(0) 推荐(0)