SORU
6 Mart 2013, ÇARŞAMBA


D3.js: "Yakalanmamış SyntaxError: Unexpected token GEÇERSİZ" mi?

Sadece downloaded D3.js from d3js.org (zip dosyası link) aldım, onu sıkıştırması ve aşağıdaki HTML sayfası olarak başvurulan:

<html>
<head>
<title>D3 Sandbox</title>
<style>
</head>
<body>
<script src="/d3.v3.js"></script>
</body>
</html>

Ama ben yük Bu sayfa, benim konsol (Krom) ne zaman bana bu hatayı veriyor:

Uncaught SyntaxError: Unexpected token ILLEGAL: line 2

pi and e symbols at the start of the file gibi değil. Errrr... ben bu konuda ne yapabilirim? Python'un SimpleHTTPServer ile dosya hazırlayacağım.

Güncelleme: evet sadece EĞER bir sürüm için link biliyorum, ama dosyayı yerel olarak hizmet etmeyi tercih ederim.

CEVAP
30 Mart 2013, CUMARTESİ


HTML UTF-8 karakter seti ana belge : belirtmeyi deneyin

<meta http-equiv="content-type" content="text/html; charset=UTF8">

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Kanaal van Dj0fifty

    Kanaal van D

    28 EKİM 2011
  • Jucyber Tutoriais

    Jucyber Tuto

    8 EYLÜL 2009
  • UberFacts

    UberFacts

    26 EKİM 2013