正则小记 javascript 源码: var strings = "http://www.baidu.com?ni=10";regs = /\?.*/galert(regs.exec(strings)); 完