fibdn = new Array ("'" ,"\\", "、", ",", ";", "/");
i0=fibdn.length;
j0=a.length;
for (i=0;i<i0;i++)
{ for (j=0;j<j0;j++)
{ temp1=a.charAt(j);
temp2=fibdn[i];
if (temp1==temp2)
{ return 0; }
}
}
return 1;
i0=fibdn.length;
j0=a.length;
for (i=0;i<i0;i++)
{ for (j=0;j<j0;j++)
{ temp1=a.charAt(j);
temp2=fibdn[i];
if (temp1==temp2)
{ return 0; }
}
}
return 1;
{
var unwantedChars=/['"\\,:\/]/ig;
return !unwantedChars.test(a);
}
alert(chksafe('abc'));
</script>
for (j=0;j<j;j++)
===>这两个都改改