2
0

mid.js 216 B

12345
  1. setup.qsp_mid = (s,start,length=undefined) => {
  2. s = ""+s;
  3. //qsp_mid("5000",1,1) => "5" == "5000".substring(0,1)
  4. return (length != undefined) ? s.substring(start-1,start-1+length) : s.substring(start-1);
  5. }