例如: 1234 3344 5566
数字间有\r\n,因为值是放在textarea中的。 要是正整数,每行基本是一个数字,然后按enter键 加下一条数据
收起
var rx=/^\d+(\r?\n\d+)$/; alert(rx.test('123\n111'))
报告相同问题?