请教:百度公司面试题(1)第1大题第5小题如何解答?
【题目描述】5.下面结构体struct s1 {char ch, *ptr;union {short a, b;unsigned int c:2, d:1;}struct s1 *next;};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
5.下面结构体struct s1 {char ch, *ptr;union {short a, b;unsigned int c:2, d:1;}struct s1 *next;};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
struct s1 {char ch, *ptr;union {short a, b;unsigned int c:2, d:1;}struct s1 *next;};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
char ch, *ptr;union {short a, b;unsigned int c:2, d:1;}struct s1 *next;};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
union {short a, b;unsigned int c:2, d:1;}struct s1 *next;};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
short a, b;unsigned int c:2, d:1;}struct s1 *next;};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
unsigned int c:2, d:1;}struct s1 *next;};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
}struct s1 *next;};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
struct s1 *next;};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
};的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
的大小是_____:A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
A. 12字节B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
B.16字节C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
C.20字节D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
D. 24字节【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
【我提交的答案】:B【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
【参考答案分析】:【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
【我的疑问】(如下,请求专家帮助解答)为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
为什么是16个字节啊?(function(sogouExplorer){sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);if (typeof comSogouWwwStop == "undefined" && document.location){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; if (document.location.toString().indexOf(SERVER) != 0){ return; } function consolelogstop(a){ //alert(a); } consolelogstop("content script stop js run at "+document.location); if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } sogouExplorer.extension.sendRequest({cmd: "show"}); var sogoutip = document.getElementById("sogoutip"); if (sogoutip) { var w = sogoutip.innerHTML; var t = sogoutip.title; sogouExplorer.extension.sendRequest({cmd: "showtip", data:{word:w,time:t}}); } }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } } sogouExplorer.extension.onRequest.addListener(function (request, sender, sendResponse){ });}})(window.external.sogouExplorer(window,7));
点击查看答案