一旦我启动Atom并尝试编写Python代码,我会在每个条目中收到此警告消息:
for (i=0; i<4; i++) {
var answerBox = 'answer' + (i + 1);
app.LoadInnerHTML(answerBox, answers[i].title);
var answerIndex = answers[i].index;
var answerElement = document.getElementById(answerBox);
if (answerElement.addEventListener) { // all browsers except IE before version 9
answerElement.addEventListener("click", function () {
thisQuiz.AnswerQuestion(answerIndex);
}, false);
} else {
if (answerElement.attachEvent) { // IE before version 9
answerElement.attachEvent("click", function () {
thisQuiz.AnswerQuestion(answerIndex);
});
}
}
}
卸载/重新安装pylama(也是Atom)无济于事......我该怎么办?
答案 0 :(得分:0)
如果你想让错误信息消失,你只需打开aom设置,找到已安装的linter包,取消选项如下
变更提示,请勿选择此选项。