2014年12月22日

重构的WechatLog

摘要: 重构前class WechatLog < ActiveRecord::Base has_many :wechats belongs_to :wechat_platform has_many :img_text_messages def self.add_wechat_text_message... 阅读全文

posted @ 2014-12-22 22:58 Q.Lee 阅读(644) 评论(0) 推荐(0)

2014年11月19日

Apply的应用

摘要: 语法:fn.apply(object, args)定义:应用某一对象的一个方法,用另一个对象替换当前对象。应用: 1 # 应用于替换对象 2 function People(name, age){ 3 this.name = name; 4 this.age = age; 5 } ... 阅读全文

posted @ 2014-11-19 12:03 Q.Lee 阅读(207) 评论(0) 推荐(0)

导航