var myExp = new RegExp('a+b+c'); console.log(myExp.toString()); // logs '/a+b+c/' var foo = new RegExp('bar', 'g'); console.log(foo.
確定! 回上一頁