Who can help me explain the meaning of the collection rule strstr. substr (str. indexOf (& lt; table & nbsp; & gt;), 680); & nbsp; does this 680 character mean? How should we count it? Include space and code & lt; & gt; characters? Strstr. substr (str. indexOf (& lt; tbody & gt;) can someone help me explain what the collection rules mean?
Str = str. substr (str. indexOf ('
'), 680); // does this 680 character mean? How should we count it? Include space and code <> "" characters?Str = str. substr (str. indexOf ('
'), 300 );// Console. log (str );Var reg =/
[\ S \ S] *?
| (\ D +) <\/td> [\ s \ S] *? |
([\ D \: \-] + ?) <\/Td> [\ s \ S] *? |
((? : [\ S \ S] *? \ D + <\/span>) {3, 5}) [\ s \ S] *? <\/Td> /,
I want to collect website http://www.iletou.com/cqssc/kaijiang/gaopin/kjhistory_12_1.html? T = 1 why can't I collect it?
------ Solution --------------------
This post was last edited by xuzuning at 08:48:06 N = str. indexOf ('
'); // Obtain the first appearance in str
LocationStr = str. substr (n, 680); // remove the 680 characters from the starting positionThis is js code. it cannot run properly due to cross-origin reasons.
|