随笔分类 - 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
阅读全文
摘要:注意:对于已经实例化的对象,我们可以动态增加和删除它的属性与方法,语法如下(假定对象实例为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; ...
阅读全文