📅  最后修改于: 2022-03-11 15:01:14.951000             🧑  作者: Mango
//regular indexof
let a = 'asbdais sbbdias isajdij';
a.indexOf('ias');
// with regex:
let a = 'asbdais sbbdias isajdij';
a.search(/ias/g);