javascript" for(;;);"结构体 [英] javascript "for (;;);" structure

查看:65
本文介绍了javascript" for(;;);"结构体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

清空“ for”在Facebook ajax中循环

AJAX如何调用响应(;;); {json data}是什么意思?

在分析一些facebook ajax请求身体时我注意到了每个代码都以
开头为(;;); ,后面跟一个json对象

While analyzing some facebook ajax requests body i noticed that every code starts with for (;;);, folloed by an json object

喜欢

for (;;); {"a":1,"b":"\u003cdiv"}

我在这之后用Google搜索结构却一无所获。

I googled after this structure but found nothing.

在每个ajax响应开始时这个for结构可能是什么原因?

What could be the reason for this "for" structure at the beginning of every ajax response?

推荐答案

这样的 就像这样(注意括号后面没有';'):

A for like this (note that there isn't the ';' after the bracket):

for (;;)

表示无限循环,其中执行的语句是括号之间的语句。

means an infinite loop where the statements executed are those between the brackets.

相反,a是这样的:

for (;;);

表示没有语句的无限循环。

means an infinite loop with no statement.

这篇关于javascript" for(;;);"结构体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆