错误: 'JSON' is undefined问题
已经<script type="text/javascript" src="json.js"></script>了
function Car(make,model,year,color){
this.make=make;
this.model=model;
this.year=year;
this.color=color;
}
function getObject(){
return new Car("Dodge","Coronet R/T",1968,"yellow");
}
function doJSON(){
var car=getObject();
var carAsJSON=JSON.stringify(car); // 出错
。。。。。。。
}