係javascript 用 regular expression , 點將 '/' 唔當做delimiter .
var pattern = new RegExp('m/\//');
if('/'.match(pattern))
document.write("ok");
else
document.write("not ok");
呢個永遠都print "not ok" . . .
收錄日期: 2021-04-24 22:54:41
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080424000051KK00791