标签:style blog color ar div sp log c r
需要返回成数组元素的要放在括号里头
var arr = /input-([0-9]*)-([0-9]*)/.exec(id); var all = arr[0]; var row = arr[1]; var col = arr[2];
js match regex
原文地址:http://www.cnblogs.com/turtlegood/p/3970066.html