sange_sabur
پنج شنبه 23 مهر 1394, 12:01 عصر
درود
من قطعه کدی داریم که از json توش استفاده شده
var uploaded ;
xmlhttp.addEventListener('readystatechange',functi on(){
if(this.readyState === 4){
if(this.status === 200){
uploaded = JSON.parse(this.response);
if(typeof o.options.finished === 'function'){
o.options.finished(uploaded);
}
}
ولی خطا میده
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
اساتید لطفا کمک کنید.
من قطعه کدی داریم که از json توش استفاده شده
var uploaded ;
xmlhttp.addEventListener('readystatechange',functi on(){
if(this.readyState === 4){
if(this.status === 200){
uploaded = JSON.parse(this.response);
if(typeof o.options.finished === 'function'){
o.options.finished(uploaded);
}
}
ولی خطا میده
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
اساتید لطفا کمک کنید.