前端如何像java一樣的debug呢?
1.在js頁面加入debugger
next: function(){ debugger var type=this.quiz[this.progress].subjectType; if("B"==type){ var that=this; debugger var qid=this.quiz[this.progress].subjectId; console.log(qid);
2。瀏覽器f12 進行調試 f10進行下一步
前端如何像java一樣的debug呢?
1.在js頁面加入debugger
next: function(){ debugger var type=this.quiz[this.progress].subjectType; if("B"==type){ var that=this; debugger var qid=this.quiz[this.progress].subjectId; console.log(qid);
2。瀏覽器f12 進行調試 f10進行下一步
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。