摘要: js函数 和构造 函数的 区别 js 函数 只要被new 即为构造函数 详见: http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_inheritance.html 不好的: 每个属性是独立的,修改一个不会影响另一个,每 阅读全文
posted @ 2018-07-21 13:32 我思故我在1 阅读(83) 评论(0) 推荐(0)
摘要: products[$product] = $quantity; } public function getQuantity($product) { return isset($this->products[$product]) ? $this->products[$product] : FALSE; } ... 阅读全文
posted @ 2018-06-24 14:53 我思故我在1 阅读(243) 评论(0) 推荐(0)
摘要: 测试 阅读全文
posted @ 2018-06-24 12:04 我思故我在1 阅读(117) 评论(0) 推荐(0)