var canvas = document.createElement('canvas'),
ctx = canvas.getContext("2d"); //Create the context
//more code (width, height defined elsewhere)
ctx.beginPath();
ctx.moveTo(0.35 * width, 0);
ctx.lineTo(0.35 * width, 0.65 * height);
ctx.lineTo(1 * width, 0.65 * height); //JSHint is complaining about the 1 here
ctx.stroke();
왜 여기에 오류가 발생합니까?JSHint에서 '예상치 못한 1'이 나오는 이유는 무엇입니까?
약 1.0 무엇을 줄 것이다 말할 수있는? – Vladimirs
시도해도 여전히 같은 오류가 있습니다 – AllisonC
jshint.com에서 시도했지만 문제를 재현 할 수 없습니다. 이 오류가 발생하는 방법에 관해서는 더 정확하게 질문하십시오. –