Home > front end >  Js, please the great god a question
Js, please the great god a question

Time:05-20

Is how to achieve as the browser (or word) CTRL + f/character string, the function of main is if find multiple targets, you can by clicking on a/the next, that can jump to the corresponding location/position of the string of characters, and searched on the net, could not find the way to achieve domestic and outside net also look not to understand, all sorts of methods are tried, want to have a great god can teach me

CodePudding user response:

I thought it was a very simple, direct call the browser API can be done, and I feel like indexof this function also not do, the index also don't know how much, can't think of some way to get the location of the web page scroll to the index,

CodePudding user response:

reference 1st floor zqdlly response:
I thought it was a very simple, direct call the browser API can be done, and I feel like indexof this function also not do, the index also don't know how much, can't think of some way to get the location of the web page scroll to the index,

The only purpose is to prove to find or can't find,