随笔分类 -  js之面向对象

摘要:sae中短信验证码:; (function($) { $(document).ready(function() { if (parent && parent.location.href != location.href) parent.location.href = location.href; var timelineBox = $('.timeline-box') timelineBox.find('.progress .bar').each(function(k, v) { $(v).css('width', '25 阅读全文
posted @ 2014-01-16 23:28 一束光 阅读(424) 评论(0) 推荐(0) 编辑
摘要:注意:对于已经实例化的对象,我们可以动态增加和删除它的属性与方法,语法如下(假定对象实例为obj):动态增加对象属性obj.newPropertyName=value;动态增加对象方法 obj.newMethodName=method或者=function(arg1,…,argN){}动态删除对象属性 delete obj.propertyName动态删除对象方法 delete obj.methodName 2)例子: function User(name){ this.name=name; this.age=18; ... 阅读全文
posted @ 2013-05-27 15:46 一束光 阅读(308) 评论(0) 推荐(0) 编辑

友情链接

CFC4N
点击右上角即可分享
微信分享提示