Home > front end >  Tip: always read the property '0' of undefined
Tip: always read the property '0' of undefined

Time:02-06




<meta charset="utf-8" & gt;
Epidemic surveillance & lt;/title> <br/><script SRC="https://bbs.csdn.net/static/js/jquery-3.1.1.min.js" & gt; </script> <br/><script SRC="https://bbs.csdn.net/static/js/echarts.min.js" & gt; </script> <br/><script SRC="https://bbs.csdn.net/static/js/henan.js" & gt; </script> <br/><link rel="stylesheet" href="https://bbs.csdn.net/topics/{{url_for (' static ', filename=" CSS/main CSS ', _external=True)}} "& gt; <br/><style> <br/><br/></style> <br/></head> <br/><body> <br/><Div id="title" & gt; Henan outbreak real-time tracking & lt;/div> <br/><Div id="Tim" & gt; Time & lt;/div> <br/><Div id="left1" & gt; Upper left & lt;/div> <br/><Div id="left2" & gt; Lower left & lt;/div> <br/><Div id="media1" & gt; <br/><Div & gt; <H1 & gt; 123 & lt;/h1 & gt; </div> <br/><Div & gt; <H1 & gt; 123 & lt;/h1 & gt; </div> <br/><Div & gt; <H1 & gt; 123 & lt;/h1 & gt; </div> <br/><Div & gt; <H1 & gt; 123 & lt;/h1 & gt; </div> <br/><Div & gt; <The h2 & gt; The cumulative confirmed & lt;/h2 & gt; </div> <br/><Div & gt; <The h2 & gt; The cumulative cure & lt;/h2 & gt; </div> <br/><Div & gt; <The h2 & gt; The cumulative death & lt;/h2 & gt; </div> <br/><Div & gt; <The h2 & gt; The cumulative suspected & lt;/h2 & gt; </div> <br/></div> <br/><Div id="media2" & gt; The middle and lower & lt;/div> <br/><Div id="right1" & gt; Upper right & lt;/div> <br/><Div id="right2" & gt; The lower right & lt;/div> <br/><script SRC="https://bbs.csdn.net/static/js/henan_center.js" & gt; </script> <br/><script> <br/>The function gettime () {<br/>$. Ajax ({<br/>Url:/time, <br/>Timeout: 10000,//timeout is set to 10 seconds; <br/>Success: the function (data) {<br/>$(" # Tim "). The HTML (data) <br/>}, <br/>Error: function (XHR, type, errorThrown) {<br/><br/>} <br/>}); <br/>} <br/><br/>The function getdata () {} <br/>$. Ajax ({<br/>Url:/ABC, <br/>Timeout: 10000,//timeout is set to 10 seconds; <br/>Success: the function (data) {<br/>$(" num h1 "). Eq (0). The text (data [' confirm ']) <br/>$(" num h1 "). Eq. (1) the text (data [' at heal]) <br/>$(" num h1 "). Eq. (2) the text (data [' dead ']) <br/>$(" num h1 "). Eq. (3) the text (data [' WZZ ']) <br/>}, <br/>Error: function (XHR, type, errorThrown) {<br/><br/>} <br/>}); <br/><br/>//setInterval (gettime, 1000) <br/></script> <br/></body> <br/></html> <br/><br/><br/>Henan_center. Json <br/>Var ec_center=echarts. Init (document. GetElementById (" media2 ") and "dark"); <br/><br/>Var mydata=https://bbs.csdn.net/topics/[{<br/>Name: zhengzhou, <br/>Value: 150, <br/>}, {<br/>Name: luoyang, <br/>Value: 117 <br/>}, {<br/>Name: 'kaifeng, <br/>Value: 53 <br/>}, {<br/>Name: 'xinyang, <br/>Value: 123 <br/>}, {<br/>Name: zhumadian, <br/>Value: 135 <br/>}, {<br/>Name: 'nanyang, <br/>Value: 128 <br/>}, {<br/>Name: 'zhoukou, <br/>Value: 151 <br/>}, {<br/>Name: 'xuchang, <br/>Value: 17 <br/>}, {<br/>Name: 'pingdingshan, <br/>Value: 33 <br/>}, {<br/>Name: xinxiang, <br/>Value: 0 <br/>}, {<br/>Name: 'luo river, <br/>Value: 63 <br/>}, {<br/>Name: 'shangqiu, <br/>Value: 21 <br/>}, {<br/>Name: 'sanmenxia, <br/>Value: 22 <br/>}, {<br/>Name: 'jiyuan, <br/>Value: 49 <br/>}, {<br/>Name: 'jiaozuo, <br/>Value: 27 <br/>}, {<br/>Name: anyang, <br/>Value: <br/> 2}, {<br/>Name: 'it', <br/>Value: 0 <br/>}, {<br/>Name: puyang, <br/>Value: 35 <br/>}, {<br/>Name: 'kaifeng, <br/>Value: 53 <br/>}] <br/><br/>Ec_center_option={<br/>Tooltip: {<br/>The trigger: 'item' <br/>}, <br/>VisualMap: {<br/>Show: true, <br/>X: 'left', <br/>Y: 'bottom', <br/>TextStyle: {<br/>FrontSize: 8 <br/>}, <br/>SplitList: [{start: 1, the end: 9}, <br/>{start: 10, end: 99}, <br/>{start: 100, end: 999}, <br/>{start: 1000, end: 9999}, <br/>{start: 1000}, <br/>Color: [' # 8 a330 ', '# C64918', '# E55B25', '# F2AD92', '# F9DCD1], <br/>}, <br/><br/>Series: [{<br/>Name: 'total number of confirmed, <br/>Type: 'map', <br/>The map: henan, <br/>Levenshtein distance: false, <br/>ItemStyle: {<br/>Normal: {<br/>BorderWidth: 1, <br/>BorderColor: '# 009 fe8, <br/>AreaColor: '# ffefd5', <br/>}, <br/>Emphasis: {<br/>BorderWidth: 1, <br/>BorderColor: '# 4 b0082', <br/>AreaColor: '# FFF, <br/>} <br/>}, <br/>Label: {<br/>Normal: {<br/>Show: true, <br/>FrontSize: 8, <br/>} <br/>}, <br/>Data: mydata <br/>}] <br/>}; <br/>Ec_center. SetOption (ec_center_option); <br/><br/>After the operation, in the developer mode is found in all request all the Console error always read a property '0' of undefined, and web page does not show the map of henan province </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/frontend/101153.html" target="_blank" style="color:#999">https//www.codepudding.com/frontend/101153.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/frontend/101152.html'>Why not join any CNZZ code, appear CNZZ code?</a></div> <div class="detail-arr-right">Next:<a href='/frontend/101154.html'>Why are Chinese shows undefined</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=Ajax' target='_blank'>Ajax</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>