search

Home  >  Q&A  >  body text

javascript - I recently encountered some problems when using echarts.js for projects!



## When starting the local server, a strange error message was reported mistake!
echarts.js:18 Uncaught TypeError: o.slice is not a function
The echarts outline has appeared. I don’t know what other problems there are.
Local json data As shown in the picture

巴扎黑巴扎黑2785 days ago624

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 13:31:25

    The values ​​in json are all strings, and the formats involved in the operation are different, resulting in operation errors.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:31:25

    Do you dare to post the code better and show the options? The following should be wrong, right?

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 13:31:25

    Json string format problem

    reply
    0
  • Cancelreply