File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11CACHE MANIFEST
2- # Build: 20160218053107
2+ # Build: 20160220011944
33
44CACHE:
5+ resources/images/codelf_logo.png
6+ resources/images/paypal.png
7+ resources/images/twohardtings.jpg
8+ resources/images/wechatpay.jpg
9+ resources/images/zhifubao.png
510resources/fonts/Dressedless_Three.svg
611resources/fonts/Dressedless_Three.ttf
712resources/fonts/FontAwesome.otf
@@ -10,11 +15,6 @@ resources/fonts/fontawesome-webfont.svg
1015resources/fonts/fontawesome-webfont.ttf
1116resources/fonts/fontawesome-webfont.woff
1217resources/fonts/fontawesome-webfont.woff2
13- resources/images/codelf_logo.png
14- resources/images/paypal.png
15- resources/images/twohardtings.jpg
16- resources/images/wechatpay.jpg
17- resources/images/zhifubao.png
1818src/lib/all.1a4577ad.js
1919
2020NETWORK:
Load diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 993993 this . request = function ( val , callback ) {
994994 lastVal = val ;
995995 translateRequestCallback = callback ;
996- lastVal && $ . ajax ( {
997- type : 'GET' ,
998- url : 'http://fanyi.youdao.com/openapi.do?keyfrom=Codelf&key=2023743559&type=data&doctype=jsonp&version=1.1' ,
999- dataType : 'jsonp' ,
1000- jsonp : false ,
1001- jsonpCallback : false ,
1002- contentType : "application/json" ,
1003- data : {
1004- q : lastVal ,
1005- callback : 'afterYoudaoTranslateRequest'
1006- }
996+ lastVal && $ . getJSON ( 'http://fanyi.youdao.com/openapi.do?callback=?&keyfrom=Codelf&key=2023743559&type=data&doctype=jsonp&version=1.1' ,
997+ {
998+ q : lastVal
999+ } ,
1000+ function ( data ) {
1001+ if ( data ) {
1002+ translateRequestCallback && translateRequestCallback ( data ) ;
1003+ }
10071004 } ) ;
10081005 }
1009- window . afterYoudaoTranslateRequest = function ( data ) {
1010- if ( data ) {
1011- translateRequestCallback && translateRequestCallback ( data ) ;
1012- }
1013- }
10141006 } ;
10151007
10161008
Original file line number Diff line number Diff line change @@ -6,22 +6,14 @@ module.exports = new function () {
66 this . request = function ( val , callback ) {
77 lastVal = val ;
88 translateRequestCallback = callback ;
9- lastVal && $ . ajax ( {
10- type : 'GET' ,
11- url : 'http://fanyi.youdao.com/openapi.do?keyfrom=Codelf&key=2023743559&type=data&doctype=jsonp&version=1.1' ,
12- dataType : 'jsonp' ,
13- jsonp : false ,
14- jsonpCallback : false ,
15- contentType : "application/json" ,
16- data : {
17- q : lastVal ,
18- callback : 'afterYoudaoTranslateRequest'
19- }
9+ lastVal && $ . getJSON ( 'http://fanyi.youdao.com/openapi.do?callback=?&keyfrom=Codelf&key=2023743559&type=data&doctype=jsonp&version=1.1' ,
10+ {
11+ q : lastVal
12+ } ,
13+ function ( data ) {
14+ if ( data ) {
15+ translateRequestCallback && translateRequestCallback ( data ) ;
16+ }
2017 } ) ;
2118 }
22- window . afterYoudaoTranslateRequest = function ( data ) {
23- if ( data ) {
24- translateRequestCallback && translateRequestCallback ( data ) ;
25- }
26- }
2719} ;
You can’t perform that action at this time.
0 commit comments