1function weixinGeneratescheme(url, apiServer){ 2 let openlink = ''; 3 $.ajax({ 4 url: apiServer + '/weixin/generatescheme', 5 type:'POST', 6 async: false, 7 dataType: 'json', 8 data: { 9 url: encodeURIComponent(url) 10 }, 11 success:function(result){ 12 if(result.openlink){ 13 openlink = result.openlink; 14 } 15 } 16 }); 17 return openlink; 18} 19 20(function() { 21 function wfGetUrlParam(name) { 22 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //æé ä¸ä¸ªå«æç®æ åæ°çæ£å表达å¼å¯¹è±¡ 23 24 var r = window.location.search.substr(1).match(reg); //å¹é ç®æ åæ° 25 26 if (r != null) return unescape(r[2]); 27 return null; //è¿ååæ°å¼ 28 } 29 30 function wfSetCookie(c_name, value, minute, domain) { 31 var exdate = new Date(); 32 //exdate.setDate(exdate.getDate()+expiredays); 33 exdate.setTime(exdate.getTime() + 60 * 1000 * minute); 34 document.cookie = c_name + "=" + escape(value) + ";path=/;domain=" + domain + 35 ((minute == null) ? "" : ";expires=" + exdate.toGMTString()); 36 } 37 38 var from_source = wfGetUrlParam('from_source'); 39 if(from_source){ 40 wfSetCookie('from_source', from_source, '60', '.mbalib.com'); 41 } 42})();
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.