JS通过文本框设置lineDash

 通过 eval 把字符串变成数组。



ctx.setLineDash(eval(lineDash.value));

你可能感兴趣的:(JS,javascript)