blockly > CodeGenerator > INFINITE_LOOP_TRAP
ویژگی CodeGenerator.INFINITE_LOOP_TRAP
کد دلخواه برای تزریق به مکان هایی که خطر ایجاد حلقه های نامحدود را دارند. هر نمونه از «% 1» با شناسه بلوکی که شکست خورده جایگزین می شود. به عنوان مثال checkTimeout(%1);\n
امضا:
INFINITE_LOOP_TRAP: string | null;
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-27 بهوقت ساعت هماهنگ جهانی."],[[["`CodeGenerator.INFINITE_LOOP_TRAP` allows you to insert code snippets into potentially infinite loop-prone areas within generated code."],["This property accepts a string containing the code to inject, where '%1' is replaced with the problematic block's ID."],["The purpose is to mitigate the risk of infinite loops during code execution by introducing checks or safeguards."],["Its value can be customized as needed but defaults to `null`, implying no loop trap code injection by default."]]],[]]