# Event injection


The event injection function can inject fApi, rule and custom attributes into events and native time

After enabling event injection, an injection parameter will be added to the first of the callback event parameters

# Inject fApi and custom data into the event

The data structure of the inject parameter

    rule:Array,//Generation rules
    self:Object,//Current generation rule
    option:Object,//Global configuration
    inject:Any,//Custom injection parameters

Event injection can also be turned on through the global configuration item inject Event: true, enabling event injection for all events and native events