خرید بک لینک

Vote count: 0

Why is responseType empty?

JavaScript

var xhr = new XMLHttpRequest();
xhr.open(method,url,true);
xhr.onreadystatechange = function()
{
 if (xhr.readyState=='4')
 {
  if (xhr.status==200)
  {
   console.log(xhr.responseType);//[empty]
  }
 }
}

PHP

header('Content-Type: application/json');
//[Validated JSON Data]

No frameworks.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 19 ارديبهشت 1395 ساعت: 0:00

صفحه بندی