标签: javascript html
我正在尝试在字符串中查找冒号,并尝试使用javascript将其删除
var adate = ": 01/02/2019"; if(adate.indexOf(':')) { adate = adate.substr(1); console.log(adate); }