SOURCE

console 命令行工具 X clear

                    
>
console
var datalist = '&aaa=1111&bbb=222';
var param = datalist.substring(0,1);
if(param === '?'){
  datalist = datalist;
}else{
  var paramsplice = datalist.substring(1,datalist.length);
  datalist = '?' + paramsplice;
}
console.log(datalist);