摘要:
看一个简单的例子:<script type="text/javascript"> // 以下是对函数,对象,对象方法,对象属性及原型作一个简单的实例说明: var test = test1 = test2 = function (width, height) { //同时建立多个函数(指定同一个对象的对象方法的实例) return new test.fn.init(width, height); }; test.prototype = test.fn = { init: function (width, height) { alert("作者:&quo 阅读全文
posted @ 2011-06-24 16:58
张占岭
阅读(2243)
评论(0)
推荐(0)
浙公网安备 33010602011771号