blockly > Events > CommentChange > run
یک رویداد تغییر را اجرا کنید.
امضا:
run(forward: boolean): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
به جلو | بولی | اگر به جلو اجرا شود درست است، اگر به عقب اجرا شود غلط است (لغو). |
برمیگرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["The `run()` method executes a CommentChange event, modifying a block's comment."],["It accepts a boolean `forward` parameter, indicating whether the event should be applied (forward) or reversed (backward/undo)."],["Calling `run()` with `forward` set to `true` applies the comment change, while setting it to `false` undoes the change."]]],["The `Events.CommentChange.run()` method executes a comment change event. It accepts a boolean parameter, `forward`, which determines the direction of the operation. When `forward` is true, the change is applied; when false, the change is undone. The method does not return any value (void). This method is essential for both implementing changes and enabling the undo functionality for comment edits.\n"]]