提交 | 用户 | 时间
|
58d006
|
1 |
(function() { |
A |
2 |
|
|
3 |
var parts = document.location.search.slice( 1 ).split( "&" ), |
|
4 |
length = parts.length, |
|
5 |
i = 0, |
|
6 |
current, |
|
7 |
version = "1.9.0", |
|
8 |
file = "http://code.jquery.com/jquery-git.js"; |
|
9 |
|
|
10 |
for ( ; i < length; i++ ) { |
|
11 |
current = parts[ i ].split( "=" ); |
|
12 |
if ( current[ 0 ] === "jquery" ) { |
|
13 |
version = current[ 1 ]; |
|
14 |
break; |
|
15 |
} |
|
16 |
} |
|
17 |
|
|
18 |
if (version != "git") { |
|
19 |
file = "../lib/jquery-" + version + ".js"; |
|
20 |
} |
|
21 |
|
|
22 |
|
|
23 |
document.write( "<script src='" + file + "'></script>" ); |
|
24 |
|
|
25 |
})(); |