javascripthexo

Hexo | I add a Echarts chart in my article,but it only Show on homepage,when i click `read more` it gone


about the Hexo blog question(theme is icarus)

Add the following code directly to the article(xxxx.md)

<div id="container" style="width:1000px;height:900px;"></div>
<script type="text/javascript"src="./js/echarts.min.js"></script>
<script type="text/javascript" src="./js/echarts.js"></script>
<script type="text/javascript" >
//add some chart into div.container
</script>

help help me ,ty


Solution

  • it solved😅,becauce Should be like this:

    <script type="text/javascript"src="/js/echarts.min.js"></script>
    <script type="text/javascript" src="/js/echarts.js"></script>
    

    🤣🤣