javascript中的test方法
function correct(name,education){
if((/^\w+$/.test(name))&&(/^\w+$/.test(education))){
........
为什么不管name和education为何值时if判断总为false呢!??
[解决办法]
var name = "abbb";
var education = "b";
alert((/^\w+$/.test(name))&&(/^\w+$/.test(education)));
if((/^\w+$/.test(name))&&(/^\w+$/.test(education)))
{
alert("进入");
}
firefox测试没问题