这是整个代码,我无法找到错误:
var tmp = new Date();
var ora = tmp.getHours();
ora = parseInt(ora);
var giorno = 98;
var delta = parseInt(23.45 * Math.sin((360 * (giorno - 81)) / 365));
delta = Math.round(delta);
delta = Math.abs(delta);
var col = 0;
col = -(ora - delta);
为什么'col'未定义?
答案 0 :(得分:1)
'Col' is undefined: why?
Col
和col
是Javascript变量的两个不同名称,因为JavaScript变量名称区分大小写