Change '-1' answer,when indexof not found any matches

前端 未结 0 2004
别跟我提以往
别跟我提以往 2020-12-08 04:57

Here is my code.If indexof function not find any result,print out -1.I would like to change it.

         function searchForString() 
{
var str = document.getE         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题