All*_*onC 2 javascript html5 jshint
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();
Run Code Online (Sandbox Code Playgroud)
为什么我在这里收到错误?