['74',1-2-2017']
let id = data.match(/([^id=][0-9]+)/g); // 74
let date = data.match(/([^date=]([0-9]+).{3}([0-9]+).{3}([0-9]+))/g); // return %2F2%2F2017
data.match(/([0-9]+\b)/g); // return ["71", "1", "2", "2017", "1", "8", "6"]
var formData = 'id=74&date=1%2F2%2F2017&type=addtime&status=1&hours=8¬e=10';
function parse(data) {
var result = {};
data.split('&').forEach(function(item) {
var key = item.slice(0, item.indexOf('='));
var value = item.slice(item.indexOf('=') + 1);
result[key] = value;
});
return result;
}
console.log(parse(formData));