Skip to content

Commit cd59423

Browse files
authored
Update README.md
1 parent 624d6c3 commit cd59423

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Pagetual/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,17 @@ Selector or xpath of next page link, disable when set to 0, you can let it to be
132132

133133
nextLinkByUrl
134134
--
135-
If there is no next element, you can use this to generate a href from current url, [0] means RegExp string, [1] means replace string, you can use {} to eval simple code
135+
If there is no next element, you can use this to generate a href from current url, [0] means RegExp string, [1] means replace string, [2] means selector or xpath of the element which must include, [3] means selector or xpath of the element which must not include, you can use {} to eval simple code
136136
```JSON
137137
"nextLinkByUrl": [
138138
"(&page=(\\d+))?$",
139139
"&page={$2+1}"
140140
]
141+
"nextLinkByUrl": [
142+
"(&page=(\\d+))?$",
143+
"&page={$2+1}",
144+
".disable>button"
145+
]
141146
```
142147

143148
nextLinkByJs `(doc)`
@@ -298,7 +303,7 @@ The css selector or xpath of element which you want to click automatically
298303

299304
history
300305
--
301-
Set to 0 then history writing will be disable. Set to 1 then history writing will be enable. No matter what value is the general option.
306+
Set to 0 then history writing will be disable. Set to 1 then history writing will be enable. Set to 2 then history writing will action immediately after splicing. No matter what value is the general option.
302307
```JSON
303308
"history": 1
304309
```

0 commit comments

Comments
 (0)