【发布时间】:2013-09-26 02:33:18
【问题描述】:
我有一个 js 代码... 在那我运行了 js lint ...... 我有这个错误'currentApple'已经被定义.... 我需要从其他地方删除 var currentApple 吗? 在下面提供我的代码...
if(appleTab == Lifeline){
var currentApple = appleWorklist.getcurrentAppleTime("currentAppointmentcurrentAppleTime");
fo.allApples = currentApple;
}
else
{
var currentApple = appleWorklist.getcurrentAppleTime("CalendarcurrentAppointmentcurrentAppleTime");
fo.allApples = currentApple;
}
【问题讨论】:
标签: javascript jquery html javascript-events jslint