javascript - 未捕获的类型错误 : Object #<a Document> has no method 'write' ?

标签 javascript google-visualization

当尝试将 google visualization api 包含到 google app engine 的页面中时,在 Chrome 的开发人员工具控制台中出现此错误:Uncaught TypeError: Object # has no method 'write'

在 FF 3.5 中,错误是“n.write 不是函数”。这里有点菜鸟,不知道如何解决这个问题。有什么想法吗?

代码可以在这里找到: Google visualization api on app engine not working... (python)

最佳答案

以防其他人遇到此问题 - 我弄乱了使用我为 XML 输出创建的相同函数渲染生成的页面标题。

包括这个杀死它:handler.response.headers["Content-Type"] = "text/xml"

关于javascript - 未捕获的类型错误 : Object #<a Document> has no method 'write' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2345536/

相关文章:

javascript - 如何在javascript中将xml数据格式存储为字符串?

Javascript 正则表达式导致脚本无响应

javascript - splinter 的视差卷轴

javascript regexp 帮助选择一个单词但没有第一个字符

javascript - 谷歌图表显示金钱而​​不是百分比

javascript - 与 jQuery.noConflict() 冲突

javascript - 在谷歌图表中显示 json 正文

javascript - 点击离开时关闭 Google 饼图工具提示

html - 如何通过 Google Visualization API 将表格中的数字居中?

javascript - 通过回调发送 Google Charts 选项