【发布时间】:2009-02-13 16:07:07
【问题描述】:
我们的企业应用程序当前使用 Json.js 我下载了 JQuery js 文件,将其包含在使用 json 的页面中,并且我开始在 json.js 文件中收到 Javascript 错误。错误是:
Microsoft JScript runtime error: Object doesnt suppor this propety or method
这是一个已知问题吗?
编辑: 我不确定这个 json.js 文件是从哪里下载的(一位同事已经这样做了)。但是,json.js 看起来像这样:
json.js
2007-04-13
Public Domain
This file adds these methods to JavaScript:
array.toJSONString()
boolean.toJSONString()
date.toJSONString()
number.toJSONString()
object.toJSONString()
string.toJSONString()
我用 json2.js 替换了这个文件,新文件似乎没有 parseJSON() 函数。我们在几个页面中使用了这个功能。
【问题讨论】: