- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 js继承实例
<br /> <br /><script><br />function Person(name){<br /> this.name=name;<br />}<br />Person.prototype.getName=function(){<br /> return this.name;<br />}<br />//var person = new Person("代绍帅");<br />//alert(person.getName());<br />/**************Author继承Pe
2010-11-10 23:13:00
313
1
原创 js面向对象设计
<br /> <br /><script><br />var Book = function(isbn, title, author){<br />this.isbn = isbn;<br />this.title = title;<br />this.author = author;<br />}<br />Book.prototype = {<br /> /*************Add Function display()***********/<br /> display:function()
2010-11-09 11:10:00
319
原创 JS 闭包&语法性质(lexically scoped)
var abz;(function(){ var foo = 10; var bar = 2; abz= function(){ alert(foo*bar); };})();abz();JS闭包无法访问function内建参数,但是由于js具有语法性质(执行在定义域而不是运行域)可以在包外访问foo与bar。
2010-11-08 17:44:00
564
原创 数据结构二分法
<br />package per; public class Array1 { public int find(int searchKey, int[] array) { int lowBound = 0; int uppBound = array.length - 1; int curIndex; while (true) { curIndex = (lowBound +
2010-11-08 15:44:00
341
原创 Simple Formula(Updating)
<br />1. [?@sum([?PARENTFIELD.counter]:1)] -----> [?PARENTFIELD.counter] = [?PARENTFIELD.counter] + 1
2010-11-08 14:58:00
256
原创 Replication&Confliction Documents Treatment
Replication/Save conflicts document are a necessary in a distributed environment like Lotus Notes. A developer can do all he/she can to minimize conflicts through things like setting the form properties to merge conflicts if possible and using document loc
2010-11-08 14:52:00
455
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人