File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 289
289
} ) ;
290
290
} ;
291
291
292
-
293
-
294
-
295
292
if ( pageOut != null && pageOut . classList ) {
296
293
// do transition if there are no 'prevent'
297
294
if ( isPreventOut != true ) {
601
598
// v2.5.2
602
599
// is back? for issues #128
603
600
optionsTransition . back = eleOrObj . getAttribute ( "data-rel" ) == "back" ;
601
+
602
+ // v2.6.0 history
603
+ if ( eleOrObj . getAttribute ( "data-history" ) == "false" ) {
604
+ optionsTransition . history = false ;
605
+ }
604
606
} else {
605
607
response = eleOrObj . response || options . response ;
606
608
page_title = eleOrObj . title || options . title ;
Original file line number Diff line number Diff line change 14
14
< ul >
15
15
< li > < a href ="ajax-page.html " data-container ="container "> 点击加载(缓存,若后2项已请求,则无请求)</ a > </ li >
16
16
< li > < a href ="ajax-page.html#a=1#b=1&c=1# " data-reload > 点击加载(每次都请求, 返回含page结构)</ a > </ li >
17
- < li > < a href ="ajax-page.html?&& " data-formdata ="?a=1 "> 点击加载(缓存, url过滤测试)</ a > </ li >
17
+ < li > < a href ="ajax-page.html?&& " data-formdata ="?a=1 " data-history =" false " > 点击加载(缓存, url过滤测试,历史无变化 )</ a > </ li >
18
18
< li > < a href ="ajax-page.html?debug=zhangrui.songyi#&/index.php/Home/Mall/index/sid/251 " data-reload data-formdata ="?a=1 "> 点击加载(data-formdata测试)-全覆盖loading</ a > </ li >
19
19
< li > < a href ="ajax-page.html?a=1&#tt_fo#nt=m&tt_#daymode=1 " data-reload data-formdata ="&c=1 " data-mask ="true "> 点击加载(data-formdata测试)-内覆盖loading</ a > </ li >
20
20
< li > < a href ="ajax-page.html?a=1&b= " class ="follow " data-reload data-formdata ="c=1&d=1 " data-mask ="true "> 点击加载(data-formdata测试)-跟随loading</ a > </ li >
You can’t perform that action at this time.
0 commit comments