Home > front end >  Js full text matching search createTextRange ie browser
Js full text matching search createTextRange ie browser

Time:01-21

CreateTextRange findText method of full text match only one eligible text

How to match all eligible text

CodePudding user response:

Can only use ie browser
HTML code
 



<meta charset="utf-8" & gt;


<body>



1456889454,


2, according to Ben Geskin tweets, according to samsung S10 indeed has previously have been perforated panel design, the battalion commander don't think that something strange is, because the manufacturers of mobile phone market in recent years, almost are contemplating how to "win by appearance", at the same time, equipped with make smart phones more intelligent AI technology is also a big selling point, now phone


In 2015, samsung vc investment block chain ADEPT consumer equipment; ,


In 2016, the largest subsidiary of Samsung group, Samsung data system (SDS) announced that will invest in a development platform for a company based in block chain of local companies, the reason is that block chain technology is enough to change the world of financial innovation;


In 2017, samsung set up is given priority to with cloud computing platform for the enterprise block chain Nexledger;


In January 2018, samsung announced two startup investment data system, one block chain company Blocko to South Korea, another for the network security company Darktrace;


In April 2018, samsung began to Halong DragonMint T1 of Mining, mill production 10 nm chips,


In September 2018, samsung SDS customs with South Korea, the bank of Korea chain of development blocks and other cooperation system platform,


In October 2018, samsung trade with the Dutch bank ABN AMRO block chain pilot project,


On January 23, 2019, according to a person named Ben Geskin twitter users report, the samsung Galaxy S10 built-in blocks of chain digital wallets phone service, and was first reported in samsung SamMobile news web site, but by the end of the writing time, samsung has not made any response to this, but the indications are that this time it was kind of compaction hammer!




- & gt;



6666666666666


CodePudding user response:

Js code
 
The function searchVal () {
Var text=document. GetElementById (" text "). The value;
If (text==' ') {the console. The log (" 2 "); return; }
Var textRange=document. Body. CreateTextRange ();
TextRange. FindText (text);
TextRange. ScrollIntoView ();
TextRange. The select ();
}
  • Related