<!DOCTYPEhtml>
<html>
<head>
<metacharset="UTF-8">
<title>SystemError</title>
<metaname="robots"content="noindex,nofollow"/>
<metaname="viewport"content="width=device-width,initial-scale=1,user-scalable=no">
<style>
/*Base*/
body{
color:#333;
font:14pxVerdana,"HelveticaNeue",helvetica,Arial,'MicrosoftYaHei',sans-serif;
margin:0;
padding:020px20px;
word-break:break-word;
}
h1{
margin:10px00;
font-size:28px;
font-weight:500;
line-height:32px;
}
h2{
color:#4288ce;
font-weight:400;
padding:6px0;
margin:6px00;
font-size:18px;
border-bottom:1pxsolid#eee;
}
h3.subheading{
color:#4288ce;
margin:6px00;
font-weight:400;
}
h3{
margin:12px;
font-size:16px;
font-weight:bold;
}
abbr{
cursor:help;
text-decoration:underline;
text-decoration-style:dotted;
}
a{
color:#868686;
cursor:pointer;
}
a:hover{
text-decoration:underline;
}.
line-error{
background:#f8cbcb;
}.
echotable{
width:100%;
}.
echopre{
padding:16px;
overflow:auto;
font-size:85%;
line-height:1.45;
background-color:#f7f7f7;
border:0;
border-radius:3px;
font-family:Consolas,"LiberationMono",Menlo,Courier,monospace;
}.
echopre>pre{
padding:0;
margin:0;
}
/*Layout*/.
col-md-3{
width:25%;
}.
col-md-9{
width:75%;
}
[class^="col-md-"]{
float:left;
}.
clearfix{
clear:both;
}
@mediaonlyscreen
and(min-device-width:375px)
and(max-device-width:667px){.
col-md-3,.
col-md-9{
width:100%;
}
}
/*ExceptionInfo*/.
exception{
margin-top:20px;
}.
exception.message{
padding:12px;
border:1pxsolid#ddd;
border-bottom:0none;
line-height:18px;
font-size:16px;
border-top-left-radius:4px;
border-top-right-radius:4px;
font-family:Consolas,"LiberationMono",Courier,Verdana,"微软雅黑";
}.
exception.code{
float:left;
text-align:center;
color:#fff;
margin-right:12px;
padding:16px;
border-radius:4px;
background:#999;
}.
exception.source-code{
padding:6px;
border:1pxsolid#ddd;
background:#f9f9f9;
overflow-x:auto;
}.
exception.source-codepre{
margin:0;
}.
exception.source-codepreol{
margin:0;
color:#4288ce;
display:inline-block;
min-width:100%;
box-sizing:border-box;
font-size:14px;
font-family:"CenturyGothic",Consolas,"LiberationMono",Courier,Verdana;
padding-left:48px;
}.
exception.source-codepreli{
border-left:1pxsolid#ddd;
height:18px;
line-height:18px;
}.
exception.source-codeprecode{
color:#333;
height:100%;
display:inline-block;
border-left:1pxsolid#fff;
font-size:14px;
font-family:Consolas,"LiberationMono",Courier,Verdana,"微软雅黑";
}.
exception.trace{
padding:6px;
border:1pxsolid#ddd;
border-top:0none;
line-height:16px;
font-size:14px;
font-family:Consolas,"LiberationMono",Courier,Verdana,"微软雅黑";
}.
exception.traceol{
margin:12px;
}.
exception.traceolli{
padding:2px4px;
}.
exceptiondiv:last-child{
border-bottom-left-radius:4px;
border-bottom-right-radius:4px;
}
/*ExceptionVariables*/.
exception-vartable{
width:100%;
margin:12px0;
box-sizing:border-box;
table-layout:fixed;
word-wrap:break-word;
}.
exception-vartablecaption{
text-align:left;
font-size:16px;
font-weight:bold;
padding:6px0;
}.
exception-vartablecaptionsmall{
font-weight:300;
display:inline-block;
margin-left:10px;
color:#ccc;
}.
exception-vartabletbody{
font-size:13px;
font-family:Consolas,"LiberationMono",Courier,"微软雅黑";
}.
exception-vartabletd{
padding:06px;
vertical-align:top;
word-break:break-all;
}.
exception-vartabletd:first-child{
width:28%;
font-weight:bold;
white-space:nowrap;
}.
exception-vartabletdpre{
margin:0;
}
/*CopyrightInfo*/.
copyright{
margin-top:24px;
padding:12px0;
border-top:1pxsolid#eee;
}
/*SPANelementswiththeclassesbelowareaddedbyprettyprint.*/
pre.prettyprint.pln{color:#000} /*plaintext*/
pre.prettyprint.str{color:#080} /*stringcontent*/
pre.prettyprint.kwd{color:#008} /*akeyword*/
pre.prettyprint.com{color:#800} /*acomment*/
pre.prettyprint.typ{color:#606} /*atypename*/
pre.prettyprint.lit{color:#066} /*aliteralvalue*/
/*punctuation,lispopenbracket,lispclosebracket*/
pre.prettyprint.pun,pre.prettyprint.opn,pre.prettyprint.clo{color:#660}
pre.prettyprint.tag{color:#008} /*amarkuptagname*/
pre.prettyprint.atn{color:#606} /*amarkupattributename*/
pre.prettyprint.atv{color:#080} /*amarkupattributevalue*/
pre.prettyprint.dec,pre.prettyprint.var{color:#606} /*adeclaration;avariablename*/
pre.prettyprint.fun{color:red} /*afunctionname*/
</style>
</head>
<body>
<divclass="echo">
</div>
<divclass="exception">
<divclass="message">
<divclass="info">
<div>
<h2>[8]<abbrtitle="think\exception\ErrorException">ErrorException</abbr>inQqNeiRongModel.phpline50</h2>
</div>
<div><h1>undefined array index: serverip</h1></div>
</div>
</div>
<divclass="source-code">
<preclass="prettyprintlang-php"><olstart="41"><liclass="line-41"><code> $FirstID=0;
</code></li><liclass="line-42"><code> //First check locally to see if there is a purchase record in the history
</code></li><liclass="line-43"><code> $item=$this->findQQ($bookid,$cid);
</code></li><liclass="line-44"><code> if(!empty($item)){
</code></li><liclass="line-45"><code> $where=array();
</code></li><liclass="line-46"><code> $where['id']=$item['id'];
</code></li><liclass="line-47"><code> $update=array();
</code></li><liclass="line-48"><code> $update['lastuse']=time();
</code></li><liclass="line-49"><code> Db::table('qq_neirong')->where($where)->update($update) ;
</code></li><liclass="line-50"><code> $url='http://'.$item['serverip'].':5690/QQ/qqAction ?bookId='.$bookid.'&cid='.$cid.'&qq='.$item['qq']."&autopay=1";
</code></li><liclass="line-51"><code> $code=getCode($url);
</code></li><liclass="line-52"><code> if(!empty($code)){
</code></li><liclass="line-53"><code> return$code;
</code></li><liclass="line-54"><code> }
</code></li><liclass="line-55"><code> }
</code></li><liclass="line-56"><code>
</code></li><liclass="line-57"><code> while($maxRed>0){
</code></li><liclass="line-58"><code> try{
</code></li><liclass="line-59"><code>
</code></li></ol></pre>
</div>
<divclass="trace">
<h2>CallStack</h2>
<ol>
<li>inQqNeiRongModel.phpline50</li>
<li>
at<abbrtitle="think\Error">Error</abbr>::appError(8,'Undefinedindex:ser','E:\www\NewCaiJi\appl',50,['bookid'=>41134042, 'cid'=>760,'isTest'=><em>false</em>,])inQqNeiRongModel.phpline50 </li>
<li>
at<abbrtitle="app\index\model\QqNeiRongModel">QqNeiRongModel</abbr>->getContent(41134042,760)inIndex.phpline344 </li>
<li>
at<abbrtitle="app\index\controller\Index">Index</abbr>->getqqcontent() </li>
<li>
at<abbrtitle="ReflectionMethod">ReflectionMethod</abbr>->invokeArgs(<em>object</em>(<abbrtitle="app\index\controller\Index">Index</abbr>) ,[])inApp.phpline343 </li>
<li>
at<abbrtitle="think\App">App</abbr>::invokeMethod([<em>object</em>(<abbrtitle="app\index\controller\Index">Index</abbr> ;),'getqqcontent'],[])inApp.phpline611 </li>
<li>
at<abbrtitle="think\App">App</abbr>::module(['index','index','getqqcontent'],['app_host'=>'','app_debug'=><em>true</em>,'app_trace'=><em>false</em>,],<em>true</em>)inApp.phpline456 </li>
<li>
at<abbrtitle="think\App">App</abbr>::exec(['type'=>'module','module'=>['index','index','getqqcontent']],['app_host'=>'','app_debug'=><em>true</em>,'app_trace'=><em>false</em>,])inApp.phpline139 </li>
<li>
at<abbrtitle="think\App">App</abbr>::run()instart.phpline19 </li>
<li>
atrequire('E:\www\NewCaiJi\thin')inindex.phpline17 </li>
</ol>
</div>
</div>
<divclass="exception-var">
<h2>EnvironmentVariables</h2>
<div>
<h3class="subheading">GETData</h3>
<div>
<divclass="clearfix">
<divclass="col-md-3"><strong>bookid</strong></div>
<divclass="col-md-9"><small>
41134042 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>cid</strong></div>
<divclass="col-md-9"><small>
760 </small></div>
</div>
</div>
</div>
<div>
<divclass="clearfix">
<divclass="col-md-3"><strong>POSTData</strong></div>
<divclass="col-md-9"><small>empty</small></div>
</div>
</div>
<div>
<divclass="clearfix">
<divclass="col-md-3"><strong>Files</strong></div>
<divclass="col-md-9"><small>empty</small></div>
</div>
</div>
<div>
<divclass="clearfix">
<divclass="col-md-3"><strong>Cookies</strong></div>
<divclass="col-md-9"><small>empty</small></div>
</div>
</div>
<div>
<divclass="clearfix">
<divclass="col-md-3"><strong>Session</strong></div>
<divclass="col-md-9"><small>empty</small></div>
</div>
</div>
<div>
<h3class="subheading">Server/RequestData</h3>
<div>
<divclass="clearfix">
<divclass="col-md-3"><strong>PATH</strong></div>
<divclass="col-md-9"><small>
C:\python27-x64\;C:\python27-x64\Scripts;C:\ProgramFiles(x86)\CommonFiles\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramFiles\Java\jdk1.8.0_191\bin;C:\ProgramFiles\Amazon\AWSCLI\bin\; </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SYSTEMROOT</strong></div>
<divclass="col-md-9"><small>
C:\Windows </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>COMSPEC</strong></div>
<divclass="col-md-9"><small>
C:\Windows\system32\cmd.exe </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>PATHEXT</strong></div>
<divclass="col-md-9"><small>.
COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>WINDIR</strong></div>
<divclass="col-md-9"><small>
C:\Windows </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>PHP_FCGI_CHILDREN</strong></div>
<divclass="col-md-9"><small>
0 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>PHP_FCGI_MAX_REQUESTS</strong></div>
<divclass="col-md-9"><small>
10000 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>PHPRC</strong></div>
<divclass="col-md-9"><small>
E:/UPUPW_ANK_W64/Modules/PHPX/PHP72/php.ini </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>TEMP</strong></div>
<divclass="col-md-9"><small>
E:/UPUPW_ANK_W64/Temp </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>TMP</strong></div>
<divclass="col-md-9"><small>
E:/UPUPW_ANK_W64/Temp </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>_FCGI_SHUTDOWN_EVENT_</strong></div>
<divclass="col-md-9"><small>
9712 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>PATH_TRANSLATED</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\index\index\getqqcontent </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>PATH_INFO</strong></div>
<divclass="col-md-9"><small>
/index/index/getqqcontent </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SCRIPT_NAME</strong></div>
<divclass="col-md-9"><small>
/public/index.php </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>REQUEST_URI</strong></div>
<divclass="col-md-9"><small>
/public/index.php/index/index/getqqcontent?bookid=41134042&cid=760 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>QUERY_STRING</strong></div>
<divclass="col-md-9"><small>
bookid=41134042&cid=760 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>REQUEST_METHOD</strong></div>
<divclass="col-md-9"><small>
GET </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SERVER_PROTOCOL</strong></div>
<divclass="col-md-9"><small>
HTTP/1.1 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>GATEWAY_INTERFACE</strong></div>
<divclass="col-md-9"><small>
CGI/1.1 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>REMOTE_PORT</strong></div>
<divclass="col-md-9"><small>
59956 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SCRIPT_FILENAME</strong></div>
<divclass="col-md-9"><small>
E:/www/NewCaiJi/public/index.php </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SERVER_ADMIN</strong></div>
<divclass="col-md-9"><small>
[noaddressgiven] </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>CONTEXT_DOCUMENT_ROOT</strong></div>
<divclass="col-md-9"><small>
E:/www/NewCaiJi </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>CONTEXT_PREFIX</strong></div>
<divclass="col-md-9"><small>
</small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>REQUEST_SCHEME</strong></div>
<divclass="col-md-9"><small>
http </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>DOCUMENT_ROOT</strong></div>
<divclass="col-md-9"><small>
E:/www/NewCaiJi </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>REMOTE_ADDR</strong></div>
<divclass="col-md-9"><small>
223.111.202.243 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SERVER_PORT</strong></div>
<divclass="col-md-9"><small>
6056 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SERVER_ADDR</strong></div>
<divclass="col-md-9"><small>
223.111.202.243 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SERVER_NAME</strong></div>
<divclass="col-md-9"><small>
223.111.202.243 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SERVER_SOFTWARE</strong></div>
<divclass="col-md-9"><small>
Apache/2.4.43 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SERVER_SIGNATURE</strong></div>
<divclass="col-md-9"><small>
<address>Apache/2.4.43Serverat223.111.202.243Port6056</address>
</small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>SystemRoot</strong></div>
<divclass="col-md-9"><small>
C:\Windows </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>HTTP_CONNECTION</strong></div>
<divclass="col-md-9"><small>
close </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>HTTP_HOST</strong></div>
<divclass="col-md-9"><small>
223.111.202.243:6056 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>HTTP_ACCEPT_LANGUAGE</strong></div>
<divclass="col-md-9"><small>
zh-CN,zh;q=0.8 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>HTTP_ACCEPT_ENCODING</strong></div>
<divclass="col-md-9"><small>
gzip,deflate </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>HTTP_USER_AGENT</strong></div>
<divclass="col-md-9"><small>
Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/75.0.3770.142Safari/537.36Hutool </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>HTTP_ACCEPT</strong></div>
<divclass="col-md-9"><small>
text/html,application/json,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>FCGI_ROLE</strong></div>
<divclass="col-md-9"><small>
RESPONDER </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>PHP_SELF</strong></div>
<divclass="col-md-9"><small>
/public/index.php/index/index/getqqcontent </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>REQUEST_TIME_FLOAT</strong></div>
<divclass="col-md-9"><small>
1655605655.3284 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>REQUEST_TIME</strong></div>
<divclass="col-md-9"><small>
1655605655 </small></div>
</div>
</div>
</div>
<div>
<divclass="clearfix">
<divclass="col-md-3"><strong>EnvironmentVariables</strong></div>
<divclass="col-md-9"><small>empty</small></div>
</div>
</div>
<div>
<h3class="subheading">ThinkPHPConstants</h3>
<div>
<divclass="clearfix">
<divclass="col-md-3"><strong>APP_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\public//application/ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>THINK_VERSION</strong></div>
<divclass="col-md-9"><small>
5.0.24 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>THINK_START_TIME</strong></div>
<divclass="col-md-9"><small>
1655605655.3302 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>THINK_START_MEM</strong></div>
<divclass="col-md-9"><small>
416608 </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>EXT</strong></div>
<divclass="col-md-9"><small>.
php </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>DS</strong></div>
<divclass="col-md-9"><small>
\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>THINK_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\thinkphp\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>LIB_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\thinkphp\library\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>CORE_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\thinkphp\library\think\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>TRAIT_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\thinkphp\library\traits\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>ROOT_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>EXTEND_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\extend\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>VENDOR_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\vendor\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>RUNTIME_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\runtime\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>LOG_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\runtime\log\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>CACHE_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\runtime\cache\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>TEMP_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\runtime\temp\ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>CONF_PATH</strong></div>
<divclass="col-md-9"><small>
E:\www\NewCaiJi\public//application/ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>CONF_EXT</strong></div>
<divclass="col-md-9"><small>.
php </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>ENV_PREFIX</strong></div>
<divclass="col-md-9"><small>
PHP_ </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>IS_CLI</strong></div>
<divclass="col-md-9"><small>
false </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>IS_WIN</strong></div>
<divclass="col-md-9"><small>
true </small></div>
</div>
<divclass="clearfix">
<divclass="col-md-3"><strong>FILTER_VALIDATE_BOOL</strong></div>
<divclass="col-md-9"><small>
258 </small></div>
</div>
</div>
</div>
</div>
<divclass="copyright">
</div>
<script>
varLINE=50;
function$(selector,node){
varelements;
node=node||document;
if(document.querySelectorAll){
elements=node.querySelectorAll(selector);
}else{
switch(selector.substr(0,1)){
case'#':
elements=[node.getElementById(selector.substr(1))];
break;
case'.':
if(document.getElementsByClassName){
elements=node.getElementsByClassName(selector.substr(1));
}else{
elements=get_elements_by_class(selector.substr(1),node);
}
break;
default:
elements=node.getElementsByTagName();
}
}
returnelements;
functionget_elements_by_class(search_class,node,tag){
varelements=[],eles,
pattern =newRegExp('(^|\\s)'+search_class+'(\\s|$)');
node=node||document;
tag =tag ||'*';
eles=node.getElementsByTagName(tag);
for(vari=0;i<eles.length;i++){
if(pattern.test(eles[i].className)){
elements.push(eles[i])
}
}
returnelements;
}
}
$.getScript=function(src,func){
varscript=document.createElement('script');
script.async ='async';
script.src =src;
script.onload=func||function(){};
$('head')[0].appendChild(script);
}
;(function(){
varfiles=$('.toggle');
varol =$('ol',$('.prettyprint')[0]);
varli =$('li',ol[0]);
//短路径和长路径变换
for(vari=0;i<files.length;i++){
files[i].ondblclick=function(){
vartitle=this.title;
this.title=this.innerHTML;
this.innerHTML=title;
}
}
//设置出错行
varerr_line=$('.line-'+LINE,ol[0])[0];
err_line.className=err_line.className+'line-error';
$.getScript('//cdn.bootcss.com/prettify/r298/prettify.min.js',function(){
prettyPrint();
//解决Firefox浏览器一个很诡异的问题
//当代码高亮后,ol的行号莫名其妙的错位
//但是只要刷新li里面的html重新渲染就没有问题了
if(window.navigator.userAgent.indexOf('Firefox')>=0){
ol[0].innerHTML=ol[0].innerHTML;
}
});
})();
</script>
</body>
</html>