var beyond = {
formedIn: '1983',
foundedIn: '香港',
artist: ['黄家驹','黄家强','黄贯中',''叶世荣]
};
beyond.showArtist = function () {
for (var i = 0; i < this.srtist.length; i++) {
document.writeln(this.artist[i]);
}
};
beyond.showArtist()
console.log(beyond);
这里的document.writeln 是什么意思?
意思就是说,document.writeln 可以输出在浏览器页面上,
是这个意思吗?