前端jsdebug调试

前端如何像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进行下一步

posted @ 2019-06-10 13:48  三号小玩家  阅读(2119)  评论(0编辑  收藏  举报
Title
三号小玩家的 Mail: 17612457115@163.com, 联系QQ: 1359720840 微信: QQ1359720840