Uncaught SyntaxError: Unexpected token =
问题 I just switched from using a local copy of the minified version of d3.v3 to the development version. It worked fine when using the minified version, but using my local copy of http://d3js.org/d3.v3.js gives me the error in the title, referencing this line: var € = Math.PI, µ = 1e-6, d3_radians = € / 180, d3_degrees = 180 / €; When I include the hosted file, it works fine. 回答1: The problem is that you are serving D3 with the ISO-8859-1 character encoding (often the browser default), whereas D3