0

I have this little jquery script:

$('<script/>')
     .attr('src','some_script.js')
     .appendTo("body");

which returns in the console:

XHR finished loading: "http://localhost:9999/some_script.js?_=1379984053633
Uncaught SyntaxError: Unexpected identifier jquery-latest.min.js:4
(anonymous function) [...]

Why have I such a result? If I change src with, say, class, I obtain no error.

I am running a webserver through node.js on port 9999.

4

0 回答 0