I'm working on a project on my computer and I'm getting "not well-formed" error when trying to read a json object from a file located on my machine.
It happens on Firefox. In Chrome, I'm getting "XMLHttpRequest cannot load file...".
I've tried changing the Mime-type to application/json but in vain.
Could you please help?
if cv2.waitKey(0) & 0xFF == ord('q'):
break
答案 0 :(得分:0)
if this is a local file, you should be using $.getJSON It is still asynchronous.
"1, 2, 3, 4, 5"