摘要:
门户大开式对象var Book=function(isbn,title,author){ if (isbn==undefined) throw new Error("不合法"); this.isbn=isbn; this.title=title||'无标题'; this.au... 阅读全文
posted @ 2015-01-07 22:09
庄昌宽
阅读(155)
评论(0)
推荐(0)
摘要:
接口:利 固化一部分代码 弊 丧失js的灵活性在JavaScript中模仿接口/*interface Composite{ function add(child); function remove(child); function getChild(index);}interfac... 阅读全文
posted @ 2015-01-07 02:52
庄昌宽
阅读(131)
评论(0)
推荐(0)

浙公网安备 33010602011771号