JavaScript 或(||)运算符的妙用
var Book = function(author, title){
this.author = author || 'no author';
this.title = title || 'no title';
}

var Book = function(author, title){
this.author = author || 'no author';
this.title = title || 'no title';
}

暂无评论。
评论功能维护中,当前仅展示历史评论。