lsEstimator
が 2 つの要素を持つ配列の場合、この関数は次を返しtrue
ます。
function got_estimators() {
var retval =
(typeof lsEstimator != 'undefined' &&
lsEstimator != null &&
lsEstimator.length > 0);
return retval;
}
しかし、この関数はそうではありません ( undefined
Chrome と FF では を返すと思います):
function got_estimators() {
return
(typeof lsEstimator != 'undefined' &&
lsEstimator != null &&
lsEstimator.length > 0);
}
なんで?