Google应用引擎无法执行javascript代码

时间:2013-12-19 19:46:17

标签: javascript python google-app-engine

旨在将http://www.oesmith.co.uk/morris.js/插入 - > http://snyderome.appspot.com/ 但我只有乱码

<html><body><link rel="stylesheet" ref="http://cdn.oesmith.co.uk/morris-0.4.3.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="http://cdn.oesmith.co.uk/morris-0.4.3.min.js"></script>
<div align="center" id="myfirstchart" style="height: 350px;width: 800px;">90000</div>

最后一部分总是消失。我在堆栈。

<script type="text/javascript >
new Morris.Line({
element: 'myfirstchart',
 data: [
{ year: '2008', value: 20 },
{ year: '2009', value: 10 },
{ year: '2010', value: 5 },
{ year: '2011', value: 5 },
{ year: '2012', value: 20 }],
 xkey: 'year',
 ykeys: ['value'],
 labels: ['Value']
 }); </script>

1 个答案:

答案 0 :(得分:0)

你错过了“text / javascript”

末尾的引号字符(“)