File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mobilebone" ,
3
- "version" : " 2.3.0 " ,
3
+ "version" : " 2.3.1 " ,
4
4
"description" : " Bone main for mobile web APP with a sigle page mode." ,
5
5
"main" : " src/mobilebone.js" ,
6
6
"directories" : {
Original file line number Diff line number Diff line change 38
38
*
39
39
* @type string
40
40
**/
41
- Mobilebone . VERSION = '2.3.0 ' ;
41
+ Mobilebone . VERSION = '2.3.1 ' ;
42
42
43
43
/**
44
44
* Whether catch attribute of href from element with tag 'a'
828
828
// if not ajax request
829
829
if ( target . getAttribute ( "data-rel" ) == "external"
830
830
|| ajax == "false"
831
- || ( href . split ( "/" ) [ 0 ] !== location . href . split ( "/" ) [ 0 ] && ajax != "true" )
831
+ || ( href . replace ( "://" , "" ) . split ( "/" ) [ 0 ] !== location . href . replace ( "://" , "" ) . split ( "/" ) [ 0 ] && ajax != "true" )
832
832
|| ( Mobilebone . captureLink == false && ajax != "true" )
833
833
) return ;
834
834
917
917
if ( / ^ j a v a s c r i p t / . test ( href ) ) {
918
918
if ( back == false ) return ;
919
919
} else {
920
- external = external || ( href . split ( "/" ) [ 0 ] !== location . href . split ( "/" ) [ 0 ] ) ;
920
+ external = external || ( href . replace ( "://" , "" ) . split ( "/" ) [ 0 ] !== location . href . replace ( "://" , "" ) . split ( "/" ) [ 0 ] ) ;
921
921
if ( ( external == true || capture == false ) && target . getAttribute ( "data-ajax" ) != "true" ) return ;
922
922
}
923
923
Original file line number Diff line number Diff line change 25
25
< ul >
26
26
< li > < a href ="b.html "> 连续加载测试-加载b页面</ a > </ li >
27
27
</ ul >
28
+ < ul >
29
+ < li > < a href ="http://www.zhangxinxu.com/sp/char.html " target ="_blank "> 外部地址测试,应该直接跳转</ a > </ li >
30
+ </ ul >
28
31
< ul >
29
32
< li > < a href ="../index.html " data-ajax ="false "> « 返回测试引导首页</ a > </ li >
30
33
</ ul >
You can’t perform that action at this time.
0 commit comments