JSON doesn't require you to do that, it allows you to do that.(JSON不需要您执行此操作,而是允许您执行此操作。)
It also allows you to use "a" for "A", but it's not required.(它还允许您将“ \ u0061”用于“ A”,但这不是必需的。) Allowing \/
helps when embedding JSON in a <script>
tag, which doesn't allow </
inside strings, like Seb points out.(当将JSON嵌入<script>
标记(不允许</
内时,允许\/
有助于在字符串中嵌入</
,就像Seb指出的那样。)
Some of Microsoft's ASP.NET Ajax/JSON API's use this loophole to add extra information, eg, a datetime will be sent as "\/Date(milliseconds)\/"
.(Microsoft的某些ASP.NET Ajax / JSON API使用此漏洞来添加额外的信息,例如,日期时间将以"\/Date(milliseconds)\/"
。)
(Yuck)((Y)) 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…