直接上代码:


	var word = "fdc-number=";	

	if(word.indexOf("=")>0){
		var Rex = /^fdc.+=/;
				res = word.match(Rex);
		console.log(res[0].substring(0,res[0].length-1));			
	}else{
		var Rex = /^fdc.*$/;
				res = word.match(Rex);
		console.log(res[0]);		
	}

当做是记录吧~

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2018-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案