0
在给定的代码中,best.test(password)
返回true,但是当我在if() condition中使用它时,它将其视为false。使用正则表达式,如果和与.test()函数冲突
代码:
if(best.test(password)) //It takes it as a false .
{
document.write(best.test(password));
tdPwdStrength.innerHTML="best"+best.test(password); //but in actual it is true and returning true.
}
请推荐!
您将需要添加'test()'代码# – 2009-11-02 19:57:07
否如果最好是正则表达式 – Victor 2009-11-02 20:14:04