Empty "for" loop in Facebook ajax

While surfing facebook and using the Firebug network debugger I noticed that facebook's AJAX responses all start with an empty for loop.

Example:

for(;;);{...}

Does anyone know why this is done? I assume it's to prevent some sort of XSS attack but I don't totally understand. Thanks!


Like google's

while(1);

it done for preventing of including this in <script> with further using the data

链接地址: http://www.djcxy.com/p/8382.html

上一篇: 用于执行限制的“Origin”http头的兼容性

下一篇: 在Facebook ajax中为空“循环”