写错了老师,document.getElementById("button"); 没有'#',醉了,老师用jquery写习惯了吧。
2017-11-08
courseData.forEach(function(item){
var chapterTitle = item.chapterTitle
console.log(chapterTitle + '\n')
item.videos.forEach(function(item){
//老师敲得 console.log('【' + vedio.id + '】' +vedio.title + '\n') 出现 video is not defined错误,改成这样即可
console.log('【' + item.id + '】' + item.title + '\n')
var chapterTitle = item.chapterTitle
console.log(chapterTitle + '\n')
item.videos.forEach(function(item){
//老师敲得 console.log('【' + vedio.id + '】' +vedio.title + '\n') 出现 video is not defined错误,改成这样即可
console.log('【' + item.id + '】' + item.title + '\n')
2017-11-08