exec 方法受參數g 的影響。若指定了g,則下次調用exec 時,會從上個匹配的lastIndex 開始查找。 var str = "1a1b1c"; var reg = new RegExp("1.
確定! 回上一頁