1/*! 2 * Stui v1.1.0 Copyright 2016-2018 http://v.shoutu.cn 3 * Email [email protected],[email protected] 4 */ 5 $(function(){ 6 $('#wd').keyup(function(){ 7 var keywords = $(this).val(); 8 if (keywords=='') { $('#word').hide(); return }; 9 $.ajax({ 10 url: '/ass.php?wd=' + keywords, 11 dataType: 'jsonp', 12 jsonp: 'cb', //åè°å½æ°çåæ°å(é®å¼)key 13 // jsonpCallback: 'fun', //åè°å½æ°å(å¼) value 14 beforeSend:function(){ 15 $('#word').append('<div class="autocomplete-suggestion">æ£å¨å è½½ããã</div>'); 16 }, 17 success:function(data){ 18 $('#word').empty().show(); 19 if (data.s=='') 20 { 21 $('#word').append('<div class="autocomplete-suggestion">æªæ¾å°ä¸ "' + keywords + '"ç¸å ³çç»æ</div>'); 22 } 23 $.each(data.s, function(){ 24 $('#word').append('<div class="autocomplete-suggestion">'+ this +'</div>'); 25 }) 26 }, 27 error:function(){ 28 $('#word').empty().show(); 29 $('#word').append('<div class="autocomplete-suggestion">æ¥æ¾"' + keywords + '"失败</div>'); 30 } 31 }) 32 }) 33 //ç¹å»æç´¢æ°æ®å¤å¶ç»æç´¢æ¡ 34 $(document).on('click','.autocomplete-suggestion',function(){ 35 var word = $(this).text(); 36 $('#wd').val(word); 37 $('#word').hide(); 38 $('#submit').trigger('click');触åæç´¢äºä»¶ 39 }) 40 //失å»ç¦ç¹æ¶éè 41 var clear = function(){ $('#word').hide();} 42 $("input").blur(function(){ 43 setTimeout(clear,500); 44 }) 45})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.